rust-ftp icon indicating copy to clipboard operation
rust-ftp copied to clipboard

I tried to upload the image and the zip, but I found that they were all corrupted.

Open nageslan opened this issue 2 years ago • 3 comments

I tried to upload the image and the zip, but I found that they were all corrupted.

nageslan avatar Feb 22 '23 19:02 nageslan

Same here, most of the time it seems corrupted and checking the hex values difference it randomly seems different.

sekwah41 avatar May 12 '23 12:05 sekwah41

Turns out you need to make sure

    let _ = ftp_stream.transfer_type(ftp::types::FileType::Binary);

Is run or FileType::Image. They both set the same value.

sekwah41 avatar May 12 '23 12:05 sekwah41

This helped me out, thanks for coming back to follow up @sekwah41!

thewildandy avatar Jun 25 '23 18:06 thewildandy