12088/how-to-generate-temporary-url-to-upload-files-to-s3-using-boto
I tried uploading files using: key.generate_url(3600, method='PUT') but it says request signature does not match the signature you provided.
Please help me with this
Use the following code to do so:
import boto >>> c =boto.connect_s3() >>> fp = open('myfiletoupload.txt') >>> content_length = len(fp.read()) >>> c.generate_url(300, 'PUT', 'test-1332789015', 'foobar', headers={'Content-Length': str(content_length)}, force_http=True) 'http://test-1332789015.s3.amazonaws.com/foobar?Signature=oUARG45mR95utXsiQYRJNiCI4x4%3D&Expires=1333731456&AWSAccessKeyId=AKIAJOTCCJRP4C3NSMYA&Content-Length=16'
Then use curl to PUT the file to that URL
$ curl --request PUT --upload-file myfiletoupload.txt "http://test-1332789015.s3.amazonaws.com/foobar?Signature=oUARG45mR95utXsiQYRJNiCI4x4%3D&Expires=1333731456&AWSAccessKeyId=AKIAJOTCCJRP4C3NSMYA&Content-Length=16"
Thank you in advance
This can be done by setting the ...READ MORE
Okay this code snippet will help you ...READ MORE
yes once you store it in (AWS) ...READ MORE
I think the problem should be with ...READ MORE
Check if the FTP ports are enabled ...READ MORE
To connect to EC2 instance using Filezilla, ...READ MORE
I had a similar problem with trying ...READ MORE
Hi, Here for the above mentioned IAM user ...READ MORE
Use AWS s3 rm command with multiple --exclude options as shown: aws ...READ MORE
To Download using AWS S3 CLI : aws ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.