i''m using file_column 0.3.1 with rails 1.1.6, ruby 1.8.4, on winXP, and i have this problem: when I try to upload in my web application an image using file_column plugin, if the extension of the image contains at least 1 uppercase (e.g. myImage.jpG), I get this error: No such file or directory - ./public/model/picture/tmp/1162229227.753000.516/myImage.JPG or ./public/model/picture/tmp/1162229227.753000.516/myImage.jpg Have you ever had this problem or do you know what''s about? Thank you -- 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 -~----------~----~----~----~------~----~------~--~---
I have the same problem, but i didn''t find a solution. I give up... You know there''s always a risk when you choose open source software, made by some guys late at night, when they come back from work...no guarantee, full of bugs, no or very very poor documentation George wrote:> i''m using file_column 0.3.1 with rails 1.1.6, ruby 1.8.4, on winXP, and > i have this problem: > > when I try to upload in my web application an image using file_column > plugin, if the extension of the image contains at least 1 uppercase > (e.g. myImage.jpG), I get this error: > > No such file or directory - > ./public/model/picture/tmp/1162229227.753000.516/myImage.JPG or > ./public/model/picture/tmp/1162229227.753000.516/myImage.jpg > > Have you ever had this problem or do you know what''s about? > > Thank you-- 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 -~----------~----~----~----~------~----~------~--~---
Finnaly, I found this possible solution, taken from http://www.nabble.com/Problems-with-File_column-t974251.html (!-I didn;t check it yet) <quote> If anyone''s still having this problem, I solved it and only just found this thread, and thought I''d provide some actual code. It''s a one-line fix. Change> FileUtils.mv(local_file_path, new_local_file_path) unless new_local_file_path == local_file_pathto> FileUtils.mv(local_file_path, new_local_file_path) unless new_local_file_path.downcase == local_file_path.downcaseThe code here is comparing the filename of the original file, and its sanitized version. In some cases where there was an uppercase upload, your case-(in)sensitive OS will spit an error. This fix doesn''t have any negative effect, because we''re just sanitizing filenames, nothing else. </quote> The file you have to edit is file_column.rb. George wrote:> i''m using file_column 0.3.1 with rails 1.1.6, ruby 1.8.4, on winXP, and > i have this problem: > > when I try to upload in my web application an image using file_column > plugin, if the extension of the image contains at least 1 uppercase > (e.g. myImage.jpG), I get this error: > > No such file or directory - > ./public/model/picture/tmp/1162229227.753000.516/myImage.JPG or > ./public/model/picture/tmp/1162229227.753000.516/myImage.jpg > > Have you ever had this problem or do you know what''s about? > > Thank you-- 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 -~----------~----~----~----~------~----~------~--~---