Uploading a file using FTP

Matthias Rebbe matthias_livecode_150811 at m-r-d.de
Mon Jun 19 04:33:48 EDT 2017


Terry,

thanks for the info. I thought it would be a good idea to change the variable names to be the same as in the dictionary before uploading the stack. Wasn´t that good.

I have corrected the online stack also in case others are interested also.

Regards,
Matthia

Matthias Rebbe
+49 5741 310000
‌matthiasrebbe.eu <http://matthiasrebbe.eu/>‌

> Am 19.06.2017 um 03:39 schrieb Terry Vogelaar via use-livecode <use-livecode at lists.runrev.com <mailto:use-livecode at lists.runrev.com>>:
> 
> Matthias, thank you for your response.
> I do have an Indy licence. There were 2 minor typo’s in line 18 of the script of button “upload” that resulted in sending the wrong data. I changed it from:
> put URL ("binfile"& fld "ftp_file") into pData
> to:
> put URL ("binfile:"& fld "ftp_file") into pDat
> Now the variable name corresponds with the one used in line 36 and it works like a breeze. Thank you
> 
> 
> With kind regards,
> Terry Vogelaar
> 
>> Terry, 
>> are you using a commercial license of  LC 8 / 9, Indy or business?
>> 
>> If so, you could use tsNet external for your ftp uploader. See here <http://dl.qck.nu//?dl=lcMailAndFTP.livecode <http://dl.qck.nu//?dl=lcMailAndFTP.livecode>> for a sample stack which shows how to use tsNet external for uploading using FTP
>> Unfortunately the number of parameters changed for tsNetUploadSync between the tsNet releases. So please check the dictionary of your LC version for that function with the script  of the upload button (line 36).
>> 
>> My stack was successfully tested with LC 8.1.4.
>> 
>> Hope this helps.
>> 
>> Matthias
>> 
>> Matthias Rebbe
>> +49 5741 310000
>> ?matthiasrebbe.eu <http://matthiasrebbe.eu/> <http://matthiasrebbe.eu/ <http://matthiasrebbe.eu/>>?
>> 
>>> Am 17.06.2017 um 09:20 schrieb Terry Vogelaar via use-livecode <use-livecode at lists.runrev.com <mailto:use-livecode at lists.runrev.com> <mailto:use-livecode at lists.runrev.com <mailto:use-livecode at lists.runrev.com>>>:
>>> 
>>> I tried to create a FTP uploader in LC, so I followed the instructions on:
>>> http://lessons.livecode.com/m/4071/l/6998-uploading-a-file-using-ftp <http://lessons.livecode.com/m/4071/l/6998-uploading-a-file-using-ftp> <http://lessons.livecode.com/m/4071/l/6998-uploading-a-file-using-ftp <http://lessons.livecode.com/m/4071/l/6998-uploading-a-file-using-ftp>>
>>> Of course I changed the constants and the FTP domain to the appropriate settings and that is the only thing I changed. But I only get Status Update: error. No indication on what the error might be. 
>>> 
>>> How should I figure out what went wrong, without sharing my FTP credentials with the list?
>>> 
>>> 
>>> 
>>> With kind regards,
>>> Terry Vogelaar
> 
> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com <mailto: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