//note that the File is coming from dart:io @POST("upload") @MultiPart() Future<UploadFileResponse> uploadWallpaperImage( //replace MultipartFile with File @Part(name: "files") File wallpaperImage, @Query("populate") String populate );