Uploading a file using FTP

Terry Vogelaar tvogelaar at de-mare.nl
Sun Jun 18 21:39:20 EDT 2017


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> 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/>?
> 
>> 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>>:
>> 
>> 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>
>> 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







More information about the use-livecode mailing list