uploadFile method
Uploads a file to the cloud storage.
Implementation
@override
Future<String> uploadFile({
required String localPath,
required String remotePath,
Map<String, dynamic>? metadata,
}) async {
if (!_isAuthenticated) {
throw Exception('Not authenticated');
}
final file = File(localPath);
final bytes = await file.readAsBytes();
await client.push(bytes, remotePath,
isAppFolder:
MultiCloudStorage.cloudAccess == CloudAccessType.appStorage);
return remotePath;
}