search for: attachment_attachment

Displaying 1 result from an estimated 1 matches for "attachment_attachment".

2006 Jul 04
0
Uploading files - getting size
Hi, I want to get the size of an uploaded file that is saved in the database. Can you help me? In the edit view formular there is: <input id="attachment_title" name="attachment[title]" size="30" type="text" /> <input id="attachment_attachment" name="attachment[attachment]" size="30" type="file" /> In the Attachment-model is: def attachment=(attachment_field) self.name = base_part_of(attachment_field.original_filename) self.content_type = attachment_field.content_type.chomp #sel...