Forum: Ruby on Rails file_column problem

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
7dc83d0124528052a4d4e47731b43a6d?d=identicon&s=25 Michael Bamford (Guest)
on 2007-04-20 02:37
(Received via mailing list)
Hey Everyone-

I would really appreciate some help with the use of the file_column
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
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!

Adebae130af75724f0296ff49958d6fb?d=identicon&s=25 Dion Hewson (Guest)
on 2007-04-20 08:03
(Received via mailing list)
could possibly be capitalisation issues

dreamhost is case sensitive

try uploading an image with all lower case letters eg  thebigpicture.jpg
Adebae130af75724f0296ff49958d6fb?d=identicon&s=25 Dion Hewson (Guest)
on 2007-04-20 08:19
(Received via mailing list)
hack the file_column.rb in the plugins/file_column folder

new_local_file_path = File.join(tmp_base_dir,@tmp_dir,@filename), 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

I know it seems like a dodgy hack, but I use it to guarantee all files
set to lowercase...
This topic is locked and can not be replied to.