File_column problem

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

could possibly be capitalisation issues

dreamhost is case sensitive

try uploading an image with all lower case letters eg thebigpicture.jpg

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…

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs