Displaying 1 result from an estimated 1 matches for "file_name_nam".
Did you mean:
file_name_name
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