Re: Which of the current FTP legends should I be using?
Me: >> Try tsNetUploadFile - fewer steps! Bruce: > Thanks, much appreciated. No problem. That's why I love, and preach, KISS! (My father taught me "Keep It Simple (Stupid)" at an early age. Probably around 7 years old. Military aircraft electrician. They popularized this phrase - and they needed it most.) :) By minimizing steps, it's easier to implement. Also we maximize already-tested code. (Assuming it's good code.) That minimizes the opportunity for mistakes, such as... Matthias: > how did you fill the pData parameter? Did you use > put URL "binfile:..." into pData Yep, good possibility! Me again: About existing code that people use as tsNet samples, I've noticed: Some of the code is not well-organized for modularity and KISS. (Basically, not well-organized, period.) Maybe I or someone else here can post better samples when there's time. That would get code sample consumers off to a better start. "Keep It Simple" is a powerful coding philosophy that pays off Best wishes, Curry Kenworthy Custom Software Development "Better Methods, Better Results" LiveCode Training and Consulting http://livecodeconsulting.com/ ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Which of the current FTP legends should I be using?
PrestoBruce wrote: > I need to upload a binary file (jpg,pdf,png,etc) to an FTP account. How will the resulting upload be used? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Which of the current FTP legends should I be using?
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 > : > > 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@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Which of the current FTP legends should I be using?
Hi, If you are following the code from the lesson, what are you getting back in the tRecvHeaders variable? Generally as part of the response stored in that variable, it will indicate whether it is using ascii or binary mode for transmission. Regards, Charles > On 31 Jan 2021, at 11:21 am, PrestoBruce via use-livecode > wrote: > > 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@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Which of the current FTP legends should I be using?
Bruce: > tsNetUploadSync > binary files are corrupted Try tsNetUploadFile - fewer steps! Best wishes, Curry Kenworthy Custom Software Development "Better Methods, Better Results" LiveCode Training and Consulting http://livecodeconsulting.com/ ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Which of the current FTP legends should I be using?
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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode