Hi,
Rails - newbie here…
I’m setting up an app and am trying to use file_column to upload a
picture with an item and I’m running into several problems.
(Background: I’m running Locomotive Rails under OS X 10.4.4, and using
Safari)
I followed the directions to add the necessary items, then found out
that I had to add the item to make the form tag be a multipart item.
(Sebastian - you may want to update your docs for this!)
However, when I changed the start_form_tag item to be:
<%= start_form_tag :action => ‘create’, :multipart => true %>
I get a form tag like:
which leads to an error. I can change it to:
<%= start_form_tag({:action => ‘create’}, :multipart => true) %>
which generates the correct form tag. Why does the first one not work?
Then, when I tried to submit, Safari would just time out. I found an
item about changing the lighttp.conf to work with Safari, but that
didn’t help.
If I then tried Firefox, I would then get an error instead:
same file:
/Users/john/Desktop/Mytest/public/…/config/…/public/team/image/tmp/1137961236.548784.3649/IMG_0008.JPG
and
/Users/john/Desktop/Mytest/public/…/config/…/public/team/image/tmp/1137961236.548784.3649/IMG_0008.jpg
I did some digging and found out that if the original file is in
UPPERCASE, then that error results. If I choose a file that has
lowercase, the file uploads fine in both Firefox and Safari. (In
Firefox, you can edit and change the filename to be lowercase and it
will work).
Is there any way around this problem?!?
Thanks!