← Back to team overview

openstack team mailing list archive

[openstack][swift] formpost + tempurl question

 

Hi fellow Stackers,

For the HTML form POST in Swift, where would the signed temp url(s) go?  At the swift-url level or at the file level?  How do I specify it at the individual file level?  A sample HTML form POST would be awesome!

    <form action="<swift-url>" method="POST"
          enctype="multipart/form-data">
      <input type="hidden" name="redirect" value="<redirect-url>" />
      <input type="hidden" name="max_file_size" value="<bytes>" />
      <input type="hidden" name="max_file_count" value="<count>" />
      <input type="hidden" name="expires" value="<unix-timestamp>" />
      <input type="hidden" name="signature" value="<hmac>" />
      <input type="file" name="file1" /><br />
      <input type="file" name="file2" /><br />
      <input type="submit" />
    </form>


Thanks,
Liem