NetTalk Central

Author Topic: File Upload - Request for Enhancement  (Read 2933 times)

David

  • Full Member
  • ***
  • Posts: 127
    • View Profile
File Upload - Request for Enhancement
« 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: File Upload - Request for Enhancement
« Reply #1 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