title: upload video from simple form to AWS S3 Bucket
body: <p>I will be short as possible. Anyone knows how to upload a video from an HTML form directly to AWS S3?</p>
  
  <p>I found a guide but I can't find the right settings to get it work.</p>
  
  <pre><code>&lt;html&gt;
    &lt;head&gt;
  
      &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
  
    &lt;/head&gt;
    &lt;body&gt;
  
    &lt;form action="http://sigv4examplebucket.s3.amazonaws.com/" method="post" enctype="multipart/form-data"&gt;
      Key to upload: 
      &lt;input type="input"  name="key" value="user/user1/${filename}" /&gt;&lt;br /&gt;
      &lt;input type="hidden" name="acl" value="public-read" /&gt;
      &lt;input type="hidden" name="success_action_redirect" value="http://sigv4examplebucket.s3.amazonaws.com/successful_upload.html" /&gt;
      Content-Type: 
      &lt;input type="input"  name="Content-Type" value="image/jpeg" /&gt;&lt;br /&gt;
      &lt;input type="hidden" name="x-amz-meta-uuid" value="14365123651274" /&gt; 
      &lt;input type="hidden" name="x-amz-server-side-encryption" value="AES256" /&gt; 
      &lt;input type="text"   name="X-Amz-Credential" value="AKIAIOSFODNN7EXAMPLE/20151229/us-east-1/s3/aws4_request" /&gt;
      &lt;input type="text"   name="X-Amz-Algorithm" value="AWS4-HMAC-SHA256" /&gt;
      &lt;input type="text"   name="X-Amz-Date" value="20151229T000000Z" /&gt;
  
      Tags for File: 
      &lt;input type="input"  name="x-amz-meta-tag" value="" /&gt;&lt;br /&gt;
      &lt;input type="hidden" name="Policy" value='&lt;Base64-encoded policy string&gt;' /&gt;
      &lt;input type="hidden" name="X-Amz-Signature" value="&lt;signature-value&gt;" /&gt;
      File: 
      &lt;input type="file"   name="file" /&gt; &lt;br /&gt;
      &lt;!-- The elements after this will be ignored --&gt;
      &lt;input type="submit" name="submit" value="Upload to Amazon S3" /&gt;
    &lt;/form&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>I'm using Wordpress, so plugins allowed, or I will do that with html and php only.</p>
  
  <p>Thanks. </p>