zaccharles / presigned-s3-upload Goto Github PK
View Code? Open in Web Editor NEWExamples of uploading to S3 using presigned URLs and presigned POST.
License: MIT License
Examples of uploading to S3 using presigned URLs and presigned POST.
License: MIT License
The permissions of the signer determine the permissions of the user of the signed Url.
Because of that no new objects can be uploaded via the signed Url.
This results in a 403 Forbidden
AccessDenied response.
Proposal
I suggest to give the signer (lambda's) access to the objects in the bucket.
This will make sure that new objects can be uploaded via the signed url.
This are the proposed changes: #1
What do you think?
on OSX, if I open frontend/client.html
directly I get:
Origin null is not allowed by Access-Control-Allow-Origin.
so i tried:
python3 -m http.server 7025
then navigate to http://localhost:7024/client.html
and put https://flimxcxxxx.execute-api.us-east-1.amazonaws.com/dev/
in the Step 1 - Enter API URL
input box, where i guess the url from the output of serverless deploy
:
endpoints:
GET - https://flimxcxxxx.execute-api.us-east-1.amazonaws.com/dev/signed-url
GET - https://flimxcxxxx.execute-api.us-east-1.amazonaws.com/dev/signed-post
but then after selecting a file and clicking upload it fails:
Failed to load resource: Origin http://localhost:7025 is not allowed by Access-Control-Allow-Origin.
client.html:62
'Access-Control-Allow-Credentials': true,
?A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.