Skip to content
Advertisement

Tag: amazon-s3

cURL redirect request to amazon s3 returns 400 code

Using PHP curl to fetch a release tag file from github. Github responds with a redirect header to S3 which cURL does follow. For example: Results in a 302 with a location header to s3 with various authentication details Following the redirect location header, Amazon responds with 400 Request specific response headers cannot be used for anonymous GET requests. As

How to upload pic to Amazon s3 bucket and subfolder and display using php foreach

I am using the code here: http://net.tutsplus.com/tutorials/php/how-to-use-amazon-s3-php-to-dynamically-store-and-manage-files-with-ease/ …to create a bucket and subdirectories for users who upload pics for personal use when logged in. After uploading the pics successfully to the s3 server, they are displayed in the html file in a list as such: For some reason, the subfolder is getting recognized as a file inside the bucket and

s3 direct upload restricting file size and type

A newbie question but I have googled abit and can’t seem to find any solution. I want to allow users to directly upload files to S3, not via my server first. By doing so, is there any way the files can be checked for size limit and permitted types before actually uploading to S3? Preferably not to use flash but

Advertisement