Can I check an uploaded file if broken?

user1709024 asked:

I don’t really know how to ask. Can I check that if I’m uploading a file with HTTP or with FTP. That file how full… Like progress, but not in relatime. I would like to make an automatic file moving script. If a file is full… Uploaded 100%, so not broken. Than my script move that file to another place.

Can I check completeness of a file with apache?

My problem is, my users upload with FTP. So I can't make a progress with ajax.

My answer:

You can use proftpd’s ExecOnCommand configuration option to run a command whenever a STOR completes successfully. (STOR is the FTP protocol command used to upload a file.) The command will not run if the transfer is aborted. See the documentation for further details.

View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.