amazonwebservices/aws-sdk-for-ruby — pull request #43 by bhuga (2012-05-02 23:03:30+00:00)
Title: Allow filename as a presigned post parameter

Flash adds a 'Filename' parameter to any posted upload. This commit adds 'filename' to the list of fields allowable as conditions on presigned post uploads. S3 discards it, but it's required to generate policies that work with flash uploaders.

As an example, the following is now allowed (and is required in order to work with a flash uploader:)

policy = bucket.presigned_post(key: key, success_action_status: 201, acl: 'public-read')
.where(:filename).starts_with('')