0

This is a practical question, I am working with quite large website which is going to have a big traffic, and this website is based on music. I guess you could say it's somewhat similar to soundcloud.

So i was wondering how should i store files when they are in uploading process, i'm uploading each file via ajax in chunks, so say user uploaded that file half way trough, and just turned his browser off or whatever, this means that file stays there broken and useless...

So i think best way would be to store it in a folder called temp and only once it's 100% complete move it to the user folder.

So i guess the question would be something like, is there a better way and if this moving from one folder to the other would cause to much time? Because i imagine there would files between 1mb to 1gb size so moving 1gb file would take quite some time...

4

0 回答 0