Hey Everyone- I would really appreciate some help with the use of the file_column plugin. I have it working very well on my local Windows development machine, but have not been able to get it to work on my shared host (dreamhost). When trying to upload a file, I get this error message: "Application error Rails application failed to start properly" The thing is, file_column is _mostly_ working: it accepts the uploaded file, saves it to the local file system and updates the database with the filename. There is some last step in the file upload process within file_column that is generating this error message. Has any one seen this before? I thought it may have something to do with file permissions on the shared host which don''t exist on my Windows development machine. Other than that, I''m at a loss. Thanks for any help or advice! Michael --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hey Everyone- I would really appreciate some help with the use of the file_column plugin. I have it working very well on my local Windows development machine, but have not been able to get it to work on my shared host (dreamhost). When trying to upload a file, I get this error message: "Application error Rails application failed to start properly" The thing is, file_column is _mostly_ working: it accepts the uploaded file, saves it to the local file system and updates the database with the filename. There is some last step in the file upload process within file_column that is generating this error message. Has any one seen this before? I thought it may have something to do with file permissions on the shared host which don''t exist on my Windows development machine. Other than that, I''m at a loss. Thanks for any help or advice! Michael --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
could possibly be capitalisation issues dreamhost is case sensitive try uploading an image with all lower case letters eg thebigpicture.jpg On 4/20/07, Michael Bamford <michael.james.bamford-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > Hey Everyone- > > I would really appreciate some help with the use of the file_column > plugin. > I have it working very well on my local Windows development machine, but > have not been able to get it to work on my shared host (dreamhost). When > trying to upload a file, I get this error message: > > "Application error > Rails application failed to start properly" > > The thing is, file_column is _mostly_ working: it accepts the uploaded > file, > saves it to the local file system and updates the database with the > filename. There is some last step in the file upload process within > file_column that is generating this error message. > > Has any one seen this before? I thought it may have something to do with > file permissions on the shared host which don''t exist on my Windows > development machine. Other than that, I''m at a loss. > > Thanks for any help or advice! > > Michael > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
hack the file_column.rb in the plugins/file_column folder new_local_file_path = File.join(tmp_base_dir,@tmp_dir,@filename) FileUtils.mv(local_file_path, new_local_file_path) unless new_local_file_path.downcase == local_file_path.downcase local_file_path = new_local_file_path and in your controller do some file manipulation to save all files as lower case I know it seems like a dodgy hack, but I use it to guarantee all files are set to lowercase... On 4/20/07, Dion Hewson <dionhewson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > could possibly be capitalisation issues > > dreamhost is case sensitive > > try uploading an image with all lower case letters eg thebigpicture.jpg > > > > On 4/20/07, Michael Bamford <michael.james.bamford-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > Hey Everyone- > > > > I would really appreciate some help with the use of the file_column > > plugin. > > I have it working very well on my local Windows development machine, but > > have not been able to get it to work on my shared host (dreamhost). When > > > > trying to upload a file, I get this error message: > > > > "Application error > > Rails application failed to start properly" > > > > The thing is, file_column is _mostly_ working: it accepts the uploaded > > file, > > saves it to the local file system and updates the database with the > > filename. There is some last step in the file upload process within > > file_column that is generating this error message. > > > > Has any one seen this before? I thought it may have something to do with > > > > file permissions on the shared host which don''t exist on my Windows > > development machine. Other than that, I''m at a loss. > > > > Thanks for any help or advice! > > > > Michael > > > > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Have you tried to check your production.log file to see where the error is? Gokhan www.sylow.net -- 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 -~----------~----~----~----~------~----~------~--~---