upload method
Uploads an existing backup file.
The key of the MultipartFile file must be "file".
Example:
await pb.backups.upload(http.MultipartFile.fromBytes("file", ...))
Implementation
Future<void> upload(
http.MultipartFile file, {
Map<String, dynamic> body = const {},
Map<String, dynamic> query = const {},
Map<String, String> headers = const {},
}) {
return client.send(
"/api/backups/upload",
method: "POST",
body: body,
query: query,
headers: headers,
files: [file],
);
}