-
Notifications
You must be signed in to change notification settings - Fork 61
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
initiateMultipartUpload and completeMultipartUpload S3 methods #34
Conversation
@prettynatty, I’m happy to accept this, but I would strongly recommend that you make use of TransferManager API rather than these lower level methods. |
Not in my case - I need to use lower level methods to be able to upload file parts as single objects and then merge them using copyPartRequest: http://docs.aws.amazon.com/AmazonS3/latest/dev/CopyingObjctsUsingLLJavaMPUapi.html |
Also added copyPart wrapper |
So with that approach you can do things that can’t be done with: |
This method returns immediately and does not allow validation (what if source does not exist?). |
That exception would be captured by the Sorry, I’m not intending to tell you how you should implement things. I’m just surprised and curious that what you are trying to do can’t be done with |
Hmm, I see. It's no problem to make such suggestions 😃 I'm pleased to listen them. I am just started learning S3 api. |
See aws-wrap/src/main/scala/s3/s3.scala Lines 504 to 514 in 087cbdf
with regards to blocking on transfers. I have no experience with the pre-signed urls part, so maybe your use case requires direct use of the low-level API? I just try to avoid it in favor of using the higher-level transfer API, which is suppose to do a good job with respect to resource usage. And with the transfer listeners, it’s easy to bridge that into Scala Futures, which is what |
Thank you, I'll play with |
Sure. Would you mind squashing your commits down to one in this case, as they are all closely related. I’ll be able to publish a new release later today—I don’t have access to my software signing keys right at the moment. |
Great! Squashed |
…tePresignedUrlRequest wrappers
initiateMultipartUpload and completeMultipartUpload S3 methods
Thanks for your PR. Best of luck with implementing your upload feature. |
@prettynatty, this PR was released as part of v0.7.2 |
No description provided.