ftp_put is corrupting my movies after transfer, is it wrong?

You’re trying to upload something other than a text-based file while using

(ftp_put($conn_id, $remote_file, $localfile, FTP_ASCII))

You should be using FTP_BINARY instead of FTP_ASCII since movies (and images) are binary files.

Leave a Comment