description | module to handle Amazon S3 policies for HTTP POSTs from browsers |
homepage URL | http://www.polettix.it/cgi-bin/wiki.pl/Programming/Net-Amazon-S3-Policy |
owner | flavio@polettix.it |
last change | Fri, 2 Aug 2013 21:01:26 +0000 (2 23:01 +0200) |
URL | git://repo.or.cz/Net-Amazon-S3-Policy.git |
https://repo.or.cz/Net-Amazon-S3-Policy.git | |
push URL | ssh://repo.or.cz/Net-Amazon-S3-Policy.git |
https://repo.or.cz/Net-Amazon-S3-Policy.git (learn more) | |
bundle info | Net-Amazon-S3-Policy.git downloadable bundles |
content tags |
Amazon S3 relies upon either a REST interface (see Net::Amazon::S3) or a SOAP one; as an added service, it is possible to give access to the upload of resources using HTTP POSTs that do not involve using any of these two interfaces, but a single HTML FORM. The rules you have to follow are explained in the Amazon S3 Developer Guide.
More or less, it boils down to the following:
This module lets you manage the build-up of a policy document, providing you with tools to get the Base64 encoding of the resulting JSON policy document, and to calculate the Base64 encoding of the signature. See "Example" for a complete example of how to do this.
In addition to policy synthesis, the module is also capable of parsing some policy (base64-encoded or not, but in JSON format). This shouldn't be a need in general... possibly for debug reasons.
11 years ago | master | logtree |