descriptionmodule to handle Amazon S3 policies for HTTP POSTs from browsers
homepage URLhttp://www.polettix.it/cgi-bin/wiki.pl/Programming/Net-Amazon-S3-Policy
ownerflavio@polettix.it
last changeFri, 2 Aug 2013 21:01:26 +0000 (2 23:01 +0200)
content tags
add:
readme
Net::Amazon::S3::Policy gives you an object-oriented interface to manage policies for Amazon S3 HTTP POST uploads.

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.

shortlog
2013-08-02 Flavio Polettiadded META.yml to the distributionmaster
2013-08-02 Flavio Polettiset minimum perl version to 5.8
2013-07-23 Flavio Polettiemended test for correctness
2013-07-23 Flavio Polettibase64 tests normalization
2013-07-22 Flavio Polettino POD tests, base64 encodes right stuff
2013-07-21 Flavio Polettiadvancement in DWIM, POD issues removal
2008-09-08 Flavio PolettiChanged DWIM handling.
2008-09-07 Flavio PolettiChanged location of $VERSION, to make Perl::Critic...
2008-09-04 Flavio PolettiClosed for release 0.1.2
2008-09-02 Flavio PolettiPut requirement of JSON at least version 2.
2008-09-02 Flavio PolettiBumped revision number
2008-09-02 Flavio PolettiBumped revision number.
2008-09-02 Flavio PolettiBetter shape
2008-09-02 Flavio PolettiAdded example to distribution
2008-09-02 Flavio PolettiFixed some bugs, added working example.
2008-09-02 Flavio PolettiAdded git reference, other changes for package release.
...
heads
5 years ago master