I get an "Errno::ENOENT No such file or directory - getcwd", after
finishing an upload process by the file_column plugin, and just before
The action which receives the POST with the upload information is
redirect_to :action => 'admin'
If I comment the save_file statement, redirect_to works, and no file
is uploaded, as expected. If I leave it uncommented, that's what it is
supposed to do:
def save_file(array, parameters)
name = File.basename(array.file)
array.name = name
flash[:notice] = "Error: array.save"
flash[:notice] = "Error: array.update_attributes"
What it happens, instead, is: the file is uploaded, the database is
filled, but something goes wrong as the ENOENT error message appears
before the redirection is completed. I must restart lighttpd to reach
again the app.
It's really a weird problem. I have another file upload field under
the same controller and it just works fine...
The exception, exactly, claims:
No such file or directory - getcwd
I don't know if it has to do with the safe_load_paths in routing.rb of
actionpack-1.12.5... if I should then upgrade to 1.2.3 of if there's
something I'm missing.
I've someone has encountered something similar, any help or insight is