12345678910111213141516171819202122 |
- <html>
- <head>
- <title>S3 Upload</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- </head>
- <body>
- <form action="https://bucket-name.s3.amazonaws.com/" method="post" enctype="multipart/form-data">
- <input type="hidden" name="key" value="uploads/{{filename}}">
- <input type="hidden" name="AWSAccessKeyId" value="YOUR_AWS_KEY">
- <input type="hidden" name="acl" value="public-read">
- <input type="hidden" name="success_action_redirect" value="{{return_url}}">
- <input type="hidden" name="policy" value="{{policy}}">
- <input type="hidden" name="signature" value="{{signature}}">
- <input type="hidden" name="Content-Type" value="{$Content-Type}">
- <h1>File to upload to S3:</h1>
- <input name="file" type="file">
- <br>
- <input type="submit" value="Upload File to S3">
- </form>
- </body>
- </html>
|