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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 > ArpitI 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] -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 15 Apr 2008, at 19:48, Bill Snapper wrote:> > 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]Actually it''s rails that decides to do that, based on the size of the file. Fred --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung 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. > > FredWouldn''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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---