Upload multiple files in a folder with FTP

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Juanchopapacho
Posts: 2
Joined: Sat Sep 05, 2015 4:08 am

Upload multiple files in a folder with FTP

Post by Juanchopapacho » Thu Sep 17, 2015 5:52 am

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

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Contact:

Re: Upload multiple files in a folder with FTP

Post by dave.kilroy » Fri Sep 18, 2015 2:48 pm

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
"...this is not the code you are looking for..."

Post Reply