I want to offer audio files for upload on my site after a user completes a PayPal transaction. The commercial side is already written and working - the site is built on PHP with the Zend Framework.
So I donβt incur large expenses for storage and bandwidth, I would like to place files on the Amazon S3 service. However, I am not sure if this is suitable for my requirements. As soon as the PayPal transaction is completed, I would like to assign the user a unique identification key of some type, send them to the place where they enter the key, and the file they bought is offered for download. Then the key will expire.
I have no problem writing code to create, save, and delete a key. My question is this: how can I protect / hide a file stored on Amazon S3 and then offer it to be downloaded to an authorized user with a URL that will subsequently become invalid, while at the same time transferring the file directly from Amazon, and not through my server?
Is this possible, or do I need another solution?
source share