peinhu / AetherUpload-Laravel

A Laravel package to upload large files 上传大文件的Laravel扩展包
GNU General Public License v2.0
918 stars 126 forks source link

Can we upload to directly s3? #90

Open awolad opened 4 years ago

awolad commented 4 years ago

I want to upload directly s3 bucket. Not creating chunk in local storage and then merge and then upload to s3.

peinhu commented 4 years ago

I'm afraid we can't, the package only works with the local storage. But if the aws s3 supports the REST API, then you are able to upload the file with some encrypted signatures by javascript or ajax. I've done this before but the cloud service host was not aws s3.

Maybe these links below could help: https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingRESTAPImpUpload.html https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingHTTPPOST.html https://docs.aws.amazon.com/AmazonS3/latest/dev/using-aws-amplify.html