Skip to content

Conversation

@GarrettBeatty
Copy link
Contributor

@GarrettBeatty GarrettBeatty commented Dec 3, 2025

Description

  1. Create UploadDirectoryWithResponse api which returns response metadata.
  2. add progress events similar to DownloadDirectory Initiated, Failed and Completed Events #4176 but for UploadDirectory.

Motivation and Context

To comply with the SEP

Testing

  1. Added integration tests

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project
  • My change requires a change to the documentation
  • I have updated the documentation accordingly
  • I have read the README document
  • I have added tests to cover my changes
  • All new and existing tests passed

License

  • I confirm that this pull request can be released under the Apache 2 license

@GarrettBeatty GarrettBeatty marked this pull request as ready for review December 3, 2025 01:53
@GarrettBeatty GarrettBeatty changed the title Create UploadDirectoryWithResponse api Create UploadDirectoryWithResponse api + progress tracking events Dec 3, 2025
/// <returns>The task object representing the asynchronous operation.</returns>
Task UploadDirectoryAsync(TransferUtilityUploadDirectoryRequest request, CancellationToken cancellationToken = default(CancellationToken));

/// <summary>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i updated the files that the existing uploaddirectory operations were in. i think theres also transfer utility files in the non bcl+standard folder too, but since these are partial classes, they will all be compiled together. so the main thing to update is both the sync + async

@GarrettBeatty GarrettBeatty force-pushed the uploaddirectorywithresponse branch from d71dcf5 to 6c65537 Compare December 3, 2025 16:27
Base automatically changed from gcbeatty/uploadfix2 to feature/transfermanager December 3, 2025 16:49
@GarrettBeatty GarrettBeatty force-pushed the uploaddirectorywithresponse branch from 7f7679a to ad837fb Compare December 3, 2025 16:58
ExceptionDispatchInfo.Capture(e.InnerException).Throw();
return null;
}
return UploadWithResponseAsync(filePath, bucketName).GetAwaiter().GetResult();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updating these as per #4141 (review) since i forgot to update them before

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these are all unreleased methods so im updating them

@GarrettBeatty GarrettBeatty changed the title Create UploadDirectoryWithResponse api + progress tracking events Create UploadDirectoryWithResponse api + progress tracking events + update docs and sync exception handling Dec 3, 2025
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
/// <returns>The task object representing the asynchronous operation.</returns>
/// <inheritdoc/>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sneaking in doc updates here too

@GarrettBeatty GarrettBeatty merged commit 4c8c7aa into feature/transfermanager Dec 3, 2025
1 check passed
@GarrettBeatty GarrettBeatty deleted the uploaddirectorywithresponse branch December 3, 2025 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants