Forum: Ruby on Rails file_column help: want to pass along upload info to next state via form tags

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
64c2a6af59b9003933906f26b37f4f81?d=identicon&s=25 salamander (Guest)
on 2008-11-24 18:25
(Received via mailing list)
Hello.

I have a page in which I inserted the option to upload a file in a
form where other kinds of input text fields, check boxes, and radio
buttons are being filled/clicked.

I followed the steps instructed here,
http://www.kanthak.net/opensource/file_column/

except that when submitting the form, instead of saving the data
entered, I display a confirmation page, followed by a final submit
button.

It appears I lose some critical info between the first and second
pages mentioned, in that I no longer have the necessary syntax to
identify the uploaded file.  I get an error when clicking submit to
get to the third page, where I get an error like:

Do not know how to handle a string with value 'snapshot.tiff' that was
passed to a file_column. Check if the form's encoding has been set to
'multipart/form-data'.

Because I merely passed along the data via hidden input tags.
Multipart/form-data is set in all forms.



-Al
This topic is locked and can not be replied to.