Skip to content
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

[core-client-rest] Streamed upload developer experience improvements #32671

Open
timovv opened this issue Jan 22, 2025 · 0 comments
Open

[core-client-rest] Streamed upload developer experience improvements #32671

timovv opened this issue Jan 22, 2025 · 0 comments
Assignees
Labels
Azure.Core feature-request This issue requires a new behavior in the product in order be resolved.

Comments

@timovv
Copy link
Member

timovv commented Jan 22, 2025

Would be nice to have support for inputting these when uploading binary data:

  • Resettable streams (i.e. () => NodeJS.ReadableStream | ReadableStream<Uint8Array>). core-rest-pipeline supports this already so probably just need to update the types here
  • For multipart/form-data file uploads, we could infer the filename from the path field on fs.ReadableStream when a stream created with fs.createReadStream is passed in, much like we do for File objects. Currently this does not happen and the user has to specify the filename separately.
@timovv timovv self-assigned this Jan 22, 2025
@timovv timovv added Azure.Core feature-request This issue requires a new behavior in the product in order be resolved. labels Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure.Core feature-request This issue requires a new behavior in the product in order be resolved.
Projects
None yet
Development

No branches or pull requests

1 participant