NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: David on October 18, 2010, 06:15:10 PM

Title: File Upload - Request for Enhancement
Post by: David on October 18, 2010, 06:15:10 PM
While testing file upload functionality, I monitored memory utilization.  It appears that NT is saving the uploaded file in memory and once the whole file is received it is writing to disk.  I uploaded a 800MB file and memory utilization jumped to 1.2GB and then the upload failed.

Could you add an option to write chunks of the file to a temp file and then rename it when the upload is complete?

Thank you.
NT5PR32
Title: Re: File Upload - Request for Enhancement
Post by: Bruce on October 19, 2010, 06:26:48 AM
Hi David,

yes, you're right - it goes to Ram, then gets block written to disk.
I agree, it would be a good idea in some cases (esp if the file is big) to stream immediately. I have this on my list of "things to  do" at the moment.

cheers
Bruce