Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>From this <a href="http://www.uploadify.com/forum/#/discussion/1416/uploading-to-amazon-s3/p1" rel="nofollow noreferrer">thread</a> the uploadify forum:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;script type="text/javascript" src="jquery-1.3.2.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="swfobject.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="jquery.uploadify.v2.1.0.js"&gt;&lt;/script&gt; &lt;link rel="stylesheet" href="uploadify.css" type="text/css" media="screen" /&gt; &lt;/head&gt; &lt;body&gt; &lt;form&gt; &lt;input id="fileInput" name="fileInput" type="file" /&gt; &lt;/form&gt; &lt;script type="text/javascript"&gt;// &lt;![CDATA[ $(document).ready(function() { $('#fileInput').uploadify({ 'fileDataName' : 'file', 'uploader' : 'uploadify.swf', 'script' : 'http://UPLOADBUCKET/', 'cancelImg' : 'cancel.png', 'auto' : true, 'onError' : function(errorObj, q, f, err) { console.log(err); }, 'scriptData' : { AWSAccessKeyId: "ACCESS_KEY", key: "foo/${filename}", acl: "public-read", policy: "POLICY STRING" signature: "SIGNATURE, success_action_status: '200' } }); }); // ]]&gt;&lt;/script&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>The base for the policy string is as follows:</p> <pre><code>{ "expiration": "2100-12-01T12:00:00.000Z", "conditions": [ {"acl": "public-read" }, {"bucket": "UPLOADBUCKET" }, {"success_action_status" : '200'}, ["starts-with", "$filename", "" ], ["starts-with", "$folder", "" ], ["starts-with", "$key", "foo"], ["content-length-range", 1, 209715200] ] } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload