Hello,
I’ve been doing some tests for uploading large files (say > 50MB) from
a form using ruby on rails, has anyone experienced poor performance
during this operation ?
I’ve tried every method described in wikis, tutorials, and even a few
plugins to do this. In all cases the CPU of my (old) powerbook G4 goes
to 100%, and it takes about a minute to upload a 50MB file to
localhost, and more than 5 minutes for a 100MB file. I’ve tried the
same operation in php and it takes about 15 seconds without occupying
all the resources.
At first i thought it was a matter of what code i was using to save
the file, but in later tests i discovered that the process slows down
just during the upload process, even if my controller code is no more
than calling the array params[:uploaded_file], without saving the file
anywhere. I don’t know what to think, maybe it is some flaw with
WEBrick…
I am currently using php to save the file in my application, but I
would like to know if there is a “rails way” that you know.
thanks in advance,
Pier Luigi R.
p.s. I’m a newbie, please don’t be rude