An exploration in using the "BeforeUpload" event handler in Plupload as a means to generate an Amazon S3 upload policy tailored specifically for the current file.