uploadFile abstract method

  1. @POST('/files/upload')
  2. @MultiPart()
Future<FileUploadResponse> uploadFile(
  1. @Part(value: 'documents') File files, {
  2. @SendProgress() required ProgressCallback onSendProgress,
})

FILE UPLOAD

Implementation

@POST('/files/upload')
@MultiPart()
Future<FileUploadResponse> uploadFile(
  @Part(value: 'documents') File files, {
  @SendProgress() required ProgressCallback onSendProgress,
});