search for: copy_stream

Displaying 1 result from an estimated 1 matches for "copy_stream".

2008 Jan 01
0
copying uploaded file
Hi, We are using mongrel_upload_progress to upload pictures. All fine and good. But after the file is uploaded by the user we are currently using FileUtils.copy_stream to copy the uploaded file data into our WebDav. I think this process is probably inefficient and results in unnecessary allocation/deallocation of memory as ruby has to first read and then write the file data. I think a better alternative will be using FileUtils.copy, and copy the temp file on to...