Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>S3 POST Form</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- </head>
- <body>
- <form action="https://<my bucket>.s3.amazonaws.com/" method="post" enctype="multipart/form-data">
- <input type="hidden" name="key" value="${filename}">
- <input type="hidden" name="AWSAccessKeyId" value="<my id>">
- <input type="hidden" name="acl" value="private">
- <input type="hidden" name="policy" value="<base64-encoded policy>">
- <input type="hidden" name="signature" value="<signed with the secret key and then base64-encoded>">
- <!-- Include any additional input fields here -->
- File to upload to S3:
- <input name="file" type="file">
- <br>
- <input type="submit" value="Upload File to S3">
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment