-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Another way to generate presigned urls #244
Comments
@subhankarb can you review this (but not implement yet). |
Exactly (and I asked it to be done with that code from the beginning). |
@pwalsh I know 😉 |
@Fak3, @pwalsh s3key = connection.bucket.new_key(s3path)
s3url = s3key.generate_url(
config.ACCESS_KEY_EXPIRES_IN, 'PUT',
headers=s3headers) The only two options the new library has are: generate_presigned_url()
generate_presigned_post() I also discussed with them in the issue boto/boto3#934 For |
Openspending-conductor uses another way to generate presigned urls https://github.com/openspending/os-conductor/blob/fc242f1/conductor/blueprints/datastore/controllers.py#L32
Previously in #187 we switched from
s3.generate_presigned_url()
tos3.generate_presigned_post()
and I could not yet find a way to do streaming file uploads in the client. See issue openknowledge-archive/dpm-py#68We can try to go the same way as openspending, if it will really allow to stream uploads and have md5 hash at the same time.
Acceptance criteria
Tasks
analyzes
The OS conductor implementation is using old boto library. In the new version they changed the api.
So we can not do
The only two options the new library has are:
also see discussions in the issue boto/boto3#934
For
Chunked file upload
for really big file thinkmultipart_upload
is the way to go.The text was updated successfully, but these errors were encountered: