Forum: Ruby on Rails FileUtils copy not working when invoked by webserver

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
David R. (Guest)
on 2006-01-27 21:28
(Received via mailing list)
I have image manipulation routines in one of my controllers, and in an
attempt to "undo" bad image edits, I want to copy the original image
file
over the "working" image file.

FileUtils::Verbose.cp(@registrant.image('original'), @registrant.image)

Works great when invoked with a valid @registrant object in
script/console,
but it does not work when invoked on Lighttpd.

My Lighttpd process is running under the same user as script/console, eg
me.

Any insight would of course be appreciated.

doppler
This topic is locked and can not be replied to.