locked
Files upload field RRS feed

Answers

  • User-751080518 posted

    Hi.

    Finally I managed do solve this problem.

    I used BuddyColumn for this one. I have created TwoBuddyColumn with two fields of BuddyColumn. One for FILE_NAME and one for MIMETYPE_ID.

    Then everything else was quite easy.

    I will post code tomorrow.

    Borut

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, April 21, 2011 3:14 PM

All replies

  • User957195675 posted

    Whether You are storing files in DB or in server location ?

    What I mean storing the path in DB and files in root

    Monday, April 18, 2011 7:31 AM
  • User-751080518 posted

    I will store files in db cell (binary format).

    In List page template I would show icon of mimetype and Download link.

    Monday, April 18, 2011 7:34 AM
  • User-751080518 posted

    In table where I have field (fileData - Image type) where I will store image data I also have field mimetype_id.

    mimetype_id is associated with table MIMETYPES, where I have information of mimetype (extension, mimetype ...).

    How can I get this data befor Insert (INSERT PAGE TEMPLATE) and before update (EDIT PAGE TEMPLATE).

    I also have to set manualy mimetype_id before insert and edit, based on selected file extension.

    Tuesday, April 19, 2011 2:20 AM
  • User-330204900 posted

    You should be able to adapt Scott Hunters sample DBImage that you have already mentioned.

    Tuesday, April 19, 2011 7:50 AM
  • User-751080518 posted

    In DBImage sample, Scott uploads only images and he doesnt have to store mimetype information, because on list page he only tries to show image from binary stored in database.

    In my case I have to write mimetype information, so I can download or show (if mimetype is image) file later.

    I did everything else, except store information of mimetype on update or insert.

    I would also like to hide this field for mimetype information.  

    Tuesday, April 19, 2011 8:15 AM
  • User-330204900 posted

    Yes that is correct but the current control can be adapted.

    Tuesday, April 19, 2011 11:31 AM
  • User-751080518 posted

    Hi.

    Finally I managed do solve this problem.

    I used BuddyColumn for this one. I have created TwoBuddyColumn with two fields of BuddyColumn. One for FILE_NAME and one for MIMETYPE_ID.

    Then everything else was quite easy.

    I will post code tomorrow.

    Borut

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, April 21, 2011 3:14 PM