File_column uppercase extension problem

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

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

Finnaly, I found this possible solution, taken from
http://www.nabble.com/Problems-with-File_column-t974251.html (!-I didn;t
check it yet)

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_path

to

FileUtils.mv(local_file_path, new_local_file_path) unless new_local_file_path.downcase == local_file_path.downcase

The 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.

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