uploadFile abstract method

  1. @Multipart()
  2. @Post(path: "/v1/files")
Future<Response<File>> uploadFile(
  1. @Part("purpose") String purpose,
  2. @PartFile("file") List<int> file
)

Upload a file that contains document(s) to be used across various endpoints/features. Currently, the size of all the files uploaded by one organization can be up to 1 GB. Please contact us if you need to increase the storage limit.

Implementation

@Multipart()
@Post(path: "/v1/files")
Future<Response<File>> uploadFile(
  @Part("purpose") String purpose,
  @PartFile("file") List<int> file,
);