title: Detecting partially uploaded files?
body: <p>I have a webapp which reads from the php://input and it streams from it and than stores that data in a new file, however, because of this, a person might upload a file partially and it'll still be saved, so my question is: how can I make sure that every file which was uploaded this way was infact fully uploaded?</p>
  
  <p>I guess it is something to do with content-length, but I haven't found any resources which talk about this.</p>