Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Sometimes users would upload a very large file such as 10MB or so and it fails in the middle because one reason or another. My question is, what happens then?

For example, if it fails at the 5MB mark - permanently failed because of failed internet connection, would it still take up 5MB of disk space? Where would the partially uploaded file be? How can I purge it?

I meant web upload - the upload via HTML upload control.

share|improve this question
How are the files uploaded? FTP? SCP/SFTP? Web-Upload? – Simon Strasser Dec 31 '12 at 11:59
More detail is needed to provide any sort of answer, the lack of detail may also lead to this question being closed. Please revise you question with more detail, as Simon points out the method of upload would be a required piece of information. – Oneiroi Dec 31 '12 at 13:23
@SimonStrasser, question updated. I meant ordinary users who upload stuff via the native HTML upload control. – Jan 4 '13 at 23:48 - Using what programming language? php? – Simon Strasser Jan 5 '13 at 8:33

It depends entirely on the receiving application.

  • Most FTP/SFTP servers would keep the partial file under the assumption that the client will resume the transfer later.
  • SCP is about 50/50 in my experience. I assume because it's a configurable option and different distros have decided on different defaults, but I haven't actually looked in to this.
  • Windows servers using SMB will delete the partial file.

And that's about it for well-known behaviors. Anything else is implementation specific.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.