search for: file_content_type

Displaying 2 results from an estimated 2 matches for "file_content_type".

2009 Jun 17
1
File UPLOAD and put it on a DB BLOB
@contact = Contact.new @contact.file_file_name=params[:contact][:file].original_filename @contact.file_content_type=params[:contact][:file].content_type.chomp @contact.file=params[:contact][:file].read @contact.save the first two elements work, @contact.file=params[:contact][:file].read results empty, can you say me where I am wrong. Sergio
2009 May 07
1
Paperclip: strange mime type on windows
When i upload a pdf, validations doesn''t work, only images validation works. Avoiding check, file was loaded but with this content type: file_content_type: "binary/octet-stream" How can i solve? I''d like to have "application/pdf" -- Posted via http://www.ruby-forum.com/.