Which of the current FTP legends should I be using?

matthias_livecode_150811 at m-r-d.de matthias_livecode_150811 at m-r-d.de
Sun Jan 31 12:33:34 EST 2021


Hi PrestoBruce,

just a shot in the dark..., but how did you fill the pData parameter? Did you use 

	put URL "binfile:..." into pData 

or maybe by mistake 

	put URL "file:...." into pData

That would explain why the data is corrupted after upload.


-
Matthias Rebbe
Life Is Too Short For Boring Code

> Am 31.01.2021 um 01:19 schrieb PrestoBruce via use-livecode <use-livecode at lists.runrev.com>:
> 
> I need to upload a binary file (jpg,pdf,png,etc) to an FTP account.
> I have spent more hours than I care to admit trying to make
> tsNetUploadSync work for me.
> 
> I used the example found at https://lessons.livecode.com/m/4071/l/851756-how-to-upload-a-file-using-ftp
> Which at first blush, worked the first time (once I put in my server path/login credentials etc).
> 
> However, binary files are corrupted. I see nothing in the tsettings array to force binary xfer.
> 
> I get Transfer complete with server response code 226
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list