I''m using attachment_fu for award nomination site and I''m running into a very strange problem that I''ve found absolutely zero information on. When running on our remote server (redhat fedora), I can only upload one file. After the classname/0000/0002 or whatever directory gets created once and the file is upload and written, I cannot seem to write to that directory ever again without deleting it. I don''t get an error. I just get returned to the controller index with no uploaded data any time I try to write. The original file that was there remains intact and working until I destroy it (which works). Even after destroying it, I can''t create a new file. Interestingly enough, I don''t have this problem at all when running on my local servers (two different macs). Only on the remote server. Any help, suggestions, links, or just pointing in the right direction is most appreciated. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
johnhutch
2007-Jun-25 18:04 UTC
Re: Attachment_FU -- stops creating after first file creation
The theory at the moment is that when attachment_fu creates the classname/0000/0002 directory structure, it perhaps checks to see if it exists first. When it sees that classname/ already exists, the process stops for some reason. Does anyone know where I can find the bit of code in attachment_fu that might decide this? On Jun 25, 11:46 am, johnhutch <johnhu...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''m using attachment_fu for award nomination site and I''m running into > a very strange problem that I''ve found absolutely zero information on. > When running on our remote server (redhat fedora), I can only upload > one file. After the classname/0000/0002 or whatever directory gets > created once and the file is upload and written, I cannot seem to > write to that directory ever again without deleting it. I don''t get an > error. I just get returned to the controller index with no uploaded > data any time I try to write. The original file that was there remains > intact and working until I destroy it (which works). Even after > destroying it, I can''t create a new file. > > Interestingly enough, I don''t have this problem at all when running on > my local servers (two different macs). Only on the remote server. > > Any help, suggestions, links, or just pointing in the right direction > is most appreciated.--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
http://bs.techno-weenie.net/!source/2920/plugins/attachment_fu/lib/technoweenie/attachment_fu/backends/file_system_backend.rb#36 On Jun 26, 6:04 am, johnhutch <johnhu...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> The theory at the moment is that whenattachment_fucreates the > classname/0000/0002 directory structure, it perhaps checks to see if > it exists first. When it sees that classname/ already exists, the > process stops for some reason. Does anyone know where I can find the > bit of code inattachment_futhat might decide this? > > On Jun 25, 11:46 am, johnhutch <johnhu...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > I''m usingattachment_fufor award nomination site and I''m running into > > a very strange problem that I''ve found absolutely zero information on. > > When running on our remote server (redhat fedora), I can only upload > > one file. After the classname/0000/0002 or whatever directory gets > > created once and the file is upload and written, I cannot seem to > > write to that directory ever again without deleting it. I don''t get an > > error. I just get returned to the controller index with no uploaded > > data any time I try to write. The original file that was there remains > > intact and working until I destroy it (which works). Even after > > destroying it, I can''t create a new file. > > > Interestingly enough, I don''t have this problem at all when running on > > my local servers (two different macs). Only on the remote server. > > > Any help, suggestions, links, or just pointing in the right direction > > is most appreciated.--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
johnhutch
2007-Jun-26 18:37 UTC
Re: Attachment_FU -- stops creating after first file creation
Thanks for the link, Isaac. It''s definitely putting me on the right path. Thing is... I''m having a really hard time discerning what exactly it is that this code is doing. Would anyone care to parse some of the logic and syntax for me? I''d greatly appreciate it. On Jun 25, 10:47 pm, isaac <isaackea...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> http://bs.techno-weenie.net/!source/2920/plugins/attachment_fu/lib/te... > > On Jun 26, 6:04 am, johnhutch <johnhu...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > The theory at the moment is that whenattachment_fucreates the > > classname/0000/0002 directory structure, it perhaps checks to see if > > it exists first. When it sees that classname/ already exists, the > > process stops for some reason. Does anyone know where I can find the > > bit of code inattachment_futhat might decide this? > > > On Jun 25, 11:46 am, johnhutch <johnhu...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > I''m usingattachment_fufor award nomination site and I''m running into > > > a very strange problem that I''ve found absolutely zero information on. > > > When running on our remote server (redhat fedora), I can only upload > > > one file. After the classname/0000/0002 or whatever directory gets > > > created once and the file is upload and written, I cannot seem to > > > write to that directory ever again without deleting it. I don''t get an > > > error. I just get returned to the controller index with no uploaded > > > data any time I try to write. The original file that was there remains > > > intact and working until I destroy it (which works). Even after > > > destroying it, I can''t create a new file. > > > > Interestingly enough, I don''t have this problem at all when running on > > > my local servers (two different macs). Only on the remote server. > > > > Any help, suggestions, links, or just pointing in the right direction > > > is most appreciated.--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---