-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
service/s3/s3manager: Should be able to track download progress #286
Comments
This seems like a reasonable workaround to me. If you're worried about the object being concurrently written to while you are downloading it then the initial HEAD request will be the least of your concerns, as the downloader itself is likely making multiple concurrent GET requests-- and the object could theoretically change in between those requests as well. But I agree that having progress support and totalBytes would be useful. The only problem is that they are not known at the start of the download, so if we exposed this it would likely be via function callback. |
you're right. thanks for putting that into perspective. |
Feature added? |
Hi @xunchangguo this feature had not been added yet. It is still an outstanding item in our backlog. We're more than glad to discuss and review PR for feature requests for items such as this too :) |
Example added in 07f5610 - closing issue. |
Services === * Synced the V2 SDK with latest AWS service API definitions. * Fixes [aws#359](aws/aws-sdk-go-v2#359) SDK Features === SDK Enhancements === * `private/protocol`: Add support for TimestampFormat in protocols ([aws#358](aws/aws-sdk-go-v2#358)) * Adds support for the timestampForamt API model trait to the V2 SDK. The SDK will now generate API client parameters with the correct time format for APIs modeled with custom time stamp formats specified. * Fixes [aws#202](aws/aws-sdk-go-v2#202) * Fixes [aws#286](aws/aws-sdk-go-v2#286) * `aws`: Add example for custom HTTP client idle connection options ([aws#350](aws/aws-sdk-go-v2#350)) * Adds example to the SDK for configuring custom HTTP client idle connection keep alive options. SDK Bugs === * `private/model/api`: Fix API doc being generated with wrong value ([aws#359](aws/aws-sdk-go-v2#359)) * Fixes the SDK's generated API documentation for structure member being generated with the wrong documentation value when the member was included multiple times in the model doc-2.json file, but under different types. * V2 port of to v1 [aws#2748](aws#2748) * `aws/ec2rolecreds`: Fix security creds path to include trailing slash ([aws#356](aws/aws-sdk-go-v2#356)) * Fixes the iamSecurityCredsPath var to include a trailing slash preventing redirects when making requests to the EC2 Instance Metadata service. * Fixes [aws#351](aws/aws-sdk-go-v2#351) * `service/dynamodb/expression`: Improved reporting of bad key conditions ([aws#360](aws/aws-sdk-go-v2#360)) * Improved error reporting when invalid key conditions are constructed using KeyConditionBuilder
I want to show download progress to my users, which requires getting the total bytes to be downloaded.
I could do a HEAD request first to get this, but it's an additional round trip, and there's no telling if what I download is the same resource that I got the HEAD of.
Having access to
downloader.written
would also be useful.If anyone can suggest a workaround, that would also be very helpful.
The text was updated successfully, but these errors were encountered: