Displaying 1 result from an estimated 1 matches for "file2upload".
2007 Nov 11
0
File.chown
...rship and group on the uploaded file. It doesn''t
seem to work. No complaints anywhere, it just doesn''t work. Can
anyone suggest what I might do to get this to work, i.e., to change
the ownership and group on the uploaded file? Here''s my helper
method:
def httpUpload(file2upload,saveAs)
directoryPath=''/tmp/''
File.open(directoryPath+saveAs,''wb''){|f|
f.write(file2upload.read)}
File.chown(500,100,directoryPath+saveAs)
end
Thanks for any input.
... doug
--~--~---------~--~----~------------~-------~--~----~...