Bulk upload video files from URLs to Amazon S3

After some searches, an API or tool appears to download files from a URL directly to S3 without first downloading them?

I could first upload the files locally and then upload them to S3. Is your good tool (Mac) that allows me to upload all files to a given directory?

Or are there any PHP scripts that I could install on a shared hosting account to upload the file at a time and then upload to S3?

+4
source share
1 answer

AWS command line interface can upload files to Amazon S3, for example:

aws s3 cp file s3://my-bucket/file aws s3 cp . s3://my-bucket/path --recursive aws s3 sync . s3://my-bucket/path 

The sync command is probably best suited for your use case. It can synchronize local files with deleted files (copy only new / changed files) or use cp to copy specific files.

0
source

Source: https://habr.com/ru/post/1395309/


All Articles