Jump to content

How to check that a file being uploaded by FTP has finished uploading


FutureAndAHope

Recommended Posts

How can you check that a file being uploaded by an external PHP connection (not using PHP's FTP function), has finished uploading.  is_uploaded_file()  can test for files uploaded via HTTP POST but i don't think it allows for FTP. Any Ideas.

I would recommend reading the file's size say every 10/20 seconds, then if no file-size change occurred between 2 intervals you could assume the file finished uploading. Another way is to write a crc of the file's contents into the file name and periodically check if the contents match the crc in the filename.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.