File_fied_tag on safari

Hi
I am using file_field_tag helper to upload the files.
It is working fine on mozilla and ie but it really screwed me up in
safari.
When i see the log file, i found that its binary data is being
passed,
not the file hash.So an application error is thrown.
Had anybody faced this issue before??

Thanks
Arpit

arpit jain wrote:

Hi
I am using file_field_tag helper to upload the files.
It is working fine on mozilla and ie but it really screwed me up in
safari.
When i see the log file, i found that its binary data is being
passed,
not the file hash.So an application error is thrown.
Had anybody faced this issue before??

Thanks
Arpit

I have no idea what Safari is doing but I just spent the better part of
a day chasing it down when I realized Safari was causing a string to be
delivered to the controller rather than a StringIO. Clear case of why I
don’t get all the gushing over Safari. It’s a giant piece of [your word
here]

On 15 Apr 2008, at 19:48, Bill Snapper wrote:

word
here]

Actually it’s rails that decides to do that, based on the size of the
file.

Fred

Frederick C. wrote:

On 15 Apr 2008, at 19:48, Bill Snapper wrote:

word
here]

Actually it’s rails that decides to do that, based on the size of the
file.

Fred

Wouldn’t the file be the same size regardless of the browser? If
there’s an API defined to return a particular type of object wouldn’t it
be nice if that were consistent?

I’m told that attachment_fu is the way to get around this and if that
works, great. My point is that rails should be more consistent and less
clever when it comes to basic functionality.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs