upload.html 900 B

12345678910111213141516171819202122
  1. <html>
  2. <head>
  3. <title>S3 Upload</title>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5. </head>
  6. <body>
  7. <form action="https://bucket-name.s3.amazonaws.com/" method="post" enctype="multipart/form-data">
  8. <input type="hidden" name="key" value="uploads/{{filename}}">
  9. <input type="hidden" name="AWSAccessKeyId" value="YOUR_AWS_KEY">
  10. <input type="hidden" name="acl" value="public-read">
  11. <input type="hidden" name="success_action_redirect" value="{{return_url}}">
  12. <input type="hidden" name="policy" value="{{policy}}">
  13. <input type="hidden" name="signature" value="{{signature}}">
  14. <input type="hidden" name="Content-Type" value="{$Content-Type}">
  15. <h1>File to upload to S3:</h1>
  16. <input name="file" type="file">
  17. <br>
  18. <input type="submit" value="Upload File to S3">
  19. </form>
  20. </body>
  21. </html>