uploadFile method
Uploads list of files
to filebin and shares the file download url with sharedWithAtSigns
returns map containing key of each sharedWithAtSign and value of FileTransferObject
Implementation
@override
Future<Map<String, FileTransferObject>> uploadFile(
List<File> files, List<String> sharedWithAtSigns) async {
var encryptionKey = _encryptionService!.generateFileEncryptionKey();
var key = TextConstants.FILE_TRANSFER_KEY + Uuid().v4();
var fileStatus = await _uploadFiles(key, files, encryptionKey);
var fileUrl = TextConstants.FILEBIN_URL + 'archive/' + key + '/zip';
return shareFiles(
sharedWithAtSigns, key, fileUrl, encryptionKey, fileStatus);
}