Bug on moving files between servers

enricodias4654

Member
YetiShare User
Jan 13, 2015
411
1
16
When moving files between 2 direct servers the transfer may timeout in 60 seconds. Use default_socket_timeout to increase the timeout for the functions fopen and file_put_contents.

If the server starts the download and the connection drops in the middle of the transfer the script will proceed as if the file was downloaded successfully and the original file will be silently deleted after 1 day. To fix this, check the file size and/or md5 on the receiving server.
 

adam

Administrator
Staff member
Dec 5, 2009
2,043
108
63
Thanks for the feedback, I'll ensure it's looked at for the next release.