How do I download multiple files, a client just sent a bunch and I don’t want to download all of them manually
There are two ways.
-
You can connect Uploadcare to your S3 bucket, set an S3 backup and download the files from your backup.
-
Use REST API to automatically list and download the files one-by-one. Here is an example:
export HEADER="Authorization: Uploadcare.Simple PRIVATEKEY:PUBLICKEY"
curl -H "$HEADER" 'https://api.uploadcare.com/files/?stored=true&limit=1000' \\
|python -c 'import json,sys; x=json.loads(sys.stdin.read()); print "\\n".join(\[i\["original\_file\_url"\] for i in x\["results"\]\]);' \\
| xargs -n 1 curl -O
If you are familiar with Bash and Python, it should be clear (use your private & public key from Uploadcare project).
It will download all the files (one-by-one) from your Uploadcare storage to a local folder.