Attempt at correcting ftp upload