putFile method
Puts a new file at path
with file
as content.
lastModified
sets the date when the file was last modified on the server.
created
sets the date when the file was created on the server.
onProgress
can be used to watch the upload progress. Possible values range from 0.0 to 1.0.
See:
- http://www.webdav.org/specs/rfc2518.html#METHOD_PUT for more information.
- putFile_Request for the request sent by this method.
Implementation
Future<http.StreamedResponse> putFile(
File file,
FileStat fileStat,
PathUri path, {
DateTime? lastModified,
DateTime? created,
void Function(double progress)? onProgress,
}) {
final request = putFile_Request(
file,
fileStat,
path,
lastModified: lastModified,
created: created,
onProgress: onProgress,
);
return csrfClient.send(request);
}