Skip to content

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…

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 f…