curl / Mailing Lists / curl-users / Single Mail


Upload multiple files from a set directory

From: Nikos Andritsakis <>
Date: Fri, 31 Mar 2017 15:15:08 +0000

Hello Friends

I want, with a single call to curl, to upload all files from a local directory to a remote site.

I know how to upload one by one like this:

curl -s --ftp-create-dirs -T C:\iRallyMaster\Textfiles\Website\Omnis7\file1.png -u FTPUSER:FTPPASS<>file1.png

curl -s --ftp-create-dirs -T C:\iRallyMaster\Textfiles\Website\Omnis7\file2.txt -u FTPUSER:FTPPASS<>file2.txt

But I would like to do it with a single call like this:

curl -s --ftp-create-dirs -T C:\iRallyMaster\Textfiles\Website\Omnis7\*.* -u FTPUSER:FTPPASS<>*.*

How it can be done ?

Thanks in advance

Nikos Andritsakis

Received on 2017-03-31