NUMFILES=`ls $LOGARCHIVE/$SERVERNAME/$DOMAIN/ | grep “$LOGFILE. SERVERNAME=`echo $SERVER | awk -F ‘|’ ‘’` The following steps will demonstrate how to change the transfer type from ASCII to Binary in Filezilla.įor SERVER in `cat $SCRIPT_CONFIG/log-rotate.properties` do All FTP programs should have this functionality. You can change the transfer type in your ftp program to Binary. Changing your ftp program to binary transfer Please also check for any updates to your firewall software, and possibly restart your router as well, if switching your FTP client settings to binary doesn’t work. It’s also been brought to our attention that another possible cause of file corruption during FTP transfers, could be from your local firewall. Please see the following on how to switch your FTP program to Binary. Setting your FTP client to Binary will prevent your files from becoming corrupted through ftp transit. The “Binary transfer type” will transfer the data in binary mode which handles the files as binary data instead of text data. For the rest of this tutorial, well be using Cyberduck, however any SFTP client will work just as well (such as FileZilla or WinSCP). If youre on Windows / Mac, we recommend downloading Cyberduck. The “ ASCII transfer type” will transfer the files as regular text files. Now that youve created a machine, connected to it, now we need a way to move our precious files up to this machine.This is typically caused by uploading files through FTP as ASCII file transfer type. “ This image can not be displayed because it contains errors“ When viewing the corrupted file through the browser, the following error will be thrown. Occasionally, issues occur with files becoming corrupt when uploading through FTP.