Quick tips for working with Amazon S3 and PHP
- Try Donovan Schonknecht’s Amazon S3 PHP Class because it supports large uploads and doesn’t require PEAR.
- Set your
Content-Disposition request header to ‘inline’ if you want files to display in your browser rather than forcing a download
- Use
S3::inputFile() when copying data from a source file — when uploading, for example. You don’t need to use it when creating files on the fly.