Page 1 of 1

Upload multiple files in a folder with FTP

Posted: Thu Sep 17, 2015 5:52 am
by Juanchopapacho
Hello community =).

I'm making an application that goes files. And I got up, and make the connection, but what I want now is to upload all the files in a folder at the same time ...

How can I do it?

I tried this:

Code: Select all

 Set the defaultfolder to "C: \ Share"
     put the files into Open
     put the item into opening 1 of Open
     Set the itemdel to "/"
     Opens put into tFileForUpload
    
     # Get the name of the file for upload
     Set the itemdel to "/"
     put the last item of tFileForUpload into tFileName
     put into empty field 1
 
    
     # Connect the start the upload
     Local tDestination
     put "ftp: //" & FTPUSER & ":" & FTPPASS & "@" & "ftp.mydom/public_html/" & tFileName into tDestination
    libURLSetStatusCallback "uploadprogress", the long ID of me
     libURLftpUploadFile tFileForUpload, tDestination, "uploadComplete"
I do not know what to do = (

Thank you, and greetings to all! = D

Re: Upload multiple files in a folder with FTP

Posted: Fri Sep 18, 2015 2:48 pm
by dave.kilroy
Hi Juan and welcome to the forum!

This http://forums.livecode.com/viewtopic.ph ... est#p96810 is a great thread with mobile upload solutions from both Simon and John Craig