timestee / dart-webdav

A Easy WebDAV Client in Dart
https://github.com/timestee/dart-webdav
The Unlicense
28 stars 14 forks source link

How do I know the upload is complete #11

Open answer0732 opened 4 years ago

answer0732 commented 4 years ago

when i upload file to cloud, I want to know when it is completed(Success or failure )

uploadFile return Future , when i use it , it's return null , Is this a sign of completion?

Client webDavClient = Client(_address, _username, _password, '/', protocol: 'https');
Future<dynamic> result = await webDavClient.uploadFile(localPath, 'somePath/' + 'myFile.db');
print('result is $x');

this is message : result is null