FutureAndAHope Posted March 24, 2010 Share Posted March 24, 2010 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. Link to comment https://forums.phpfreaks.com/topic/196321-how-to-check-that-a-file-being-uploaded-by-ftp-has-finished-uploading/ Share on other sites More sharing options...
o3d Posted March 24, 2010 Share Posted March 24, 2010 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. Link to comment https://forums.phpfreaks.com/topic/196321-how-to-check-that-a-file-being-uploaded-by-ftp-has-finished-uploading/#findComment-1030898 Share on other sites More sharing options...
nilansanjaya Posted March 24, 2010 Share Posted March 24, 2010 agree with that...cant think of anything else at the moment Link to comment https://forums.phpfreaks.com/topic/196321-how-to-check-that-a-file-being-uploaded-by-ftp-has-finished-uploading/#findComment-1030922 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.