Fixed FTP download and upload file sizes being limited by available RAM (#565).