Skip to content

Provide helper methods for custom handling of the Media.upload steps #4

@Micka33

Description

@Micka33

Context

Currently, the Media.upload method handles all the upload steps synchronously and one chunk after another. If a chunk fails to be uploaded, the whole process fails.

There are cases where the developer might want to proceed differently, especially when the media is large, eg:

  • To parallelize chunk uploads.
  • To set custom retry logic when chunk upload fails.
  • To use a queue to asynchronously upload each chunk of a media.

We need to expose the methods to allow these use cases.

Todo

  • Figure out which methods need to be exposed and created
  • Implement / Expose required methods in Media class
  • Update IMedia accordingly
  • Use available Query and Response types
  • Update unit tests
  • Update integration tests
  • Update Readme
    • Add example of parallelized uploads
    • Update Table of contents

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions