Guest User

Untitled

a guest
Oct 23rd, 2012
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.82 KB | None | 0 0
  1. <html>
  2.   <head>
  3.     <title>S3 POST Form</title>
  4.     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5.   </head>
  6.  
  7.   <body>
  8.     <form action="https://<my bucket>.s3.amazonaws.com/" method="post" enctype="multipart/form-data">
  9.       <input type="hidden" name="key" value="${filename}">
  10.       <input type="hidden" name="AWSAccessKeyId" value="<my id>">
  11.       <input type="hidden" name="acl" value="private">
  12.       <input type="hidden" name="policy" value="<base64-encoded policy>">
  13.       <input type="hidden" name="signature" value="<signed with the secret key and then base64-encoded>">
  14.       <!-- Include any additional input fields here -->
  15.  
  16.       File to upload to S3:
  17.       <input name="file" type="file">
  18.       <br>
  19.       <input type="submit" value="Upload File to S3">
  20.     </form>
  21.   </body>
  22. </html>
Advertisement
Add Comment
Please, Sign In to add comment