Is there a working example or a generator that will help me with creating a HTML form needed to upload a file directly to Amazon S3 servers?
A simple script that will generate a valid HTML: https://github.com/z-x/amazon-s3-direct-post-upload
You just need to edit first few lines in the PHP file and run the script.