I''ve had this problem as well. Not sure what the root cause of the
problem is but I had to change my code to test for the existence of
the parameter as well as its contents to get it to work on both
Firefox and Safari.
On Sun, 20 Mar 2005 20:26:11 +1200, Henry Maddocks
<henryj-wUU9E3n5/m4qAMOr+u8IRA@public.gmane.org>
wrote:> File upload on Safari works fine for me.
>
> On 20/03/2005, at 8:18 PM, Ben Nolan wrote:
>
> > Has anyone else had problems uploading files with safari?
> >
> > Excerpt from my .rhtml:
> >
> > <form action="/photo/create?item_id=<%= @item.id
%>"
> > method="post" enctype="multipart/form-data">
> > <h3>Upload Photo:</h3>
> > <p>
> > <label>Filename:</label>
> > <input size="40" type="file"
name="photo[picture]" />
> > </p>
> > <p>
> > <input style="font-weight: bold"
type="submit"
> > name="Save" value="Upload" />
> > </p>
> > </form>
> >
> > When I use that in mozilla/ie - it works fine - but on safari I
don''t
> > get any file uploaded:
> >
> > render_text @params.inspect doesn''t show a photo object at
all.
> >
> > Is this a known problem?
> >
> > Regards,
> > Ben
> > _______________________________________________
> > Rails mailing list
> > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> > http://lists.rubyonrails.org/mailman/listinfo/rails
> >
>
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
--
miles