Skip to content

[Feature request] Multipart request progress support #362

@pierremrtn

Description

@pierremrtn

It would be great to have a way to get the upload progress of multipart requests. An example of how to achieve this with http package can be found here.
Maybe by adding a new annotation? Something like:

  @Post(path: '/file')
  @Multipart()
  Future<Response<void>> uploadFile(
    @Query('filename') String fileName,
    @PartFile() String filePath,
    /// A callback that take the progress of the upload as a double between 0 and 1
    @ProgressCallback() void Function(double) progressCallback,
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is neededhttppackage:http related

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions