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?
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?
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.