upload method

Future<List<BlobUploadResult>> upload({
  1. required NdkFile file,
  2. List<String>? serverUrls,
  3. bool serverMediaOptimisation = false,
})

upload a file to the server(s)
if serverUrls is null, the userServerList is fetched from nostr.
if no serverUrls (param or nostr) are found, throws an error serverMediaOptimisation is whether the server should optimise the media BUD-05, IMPORTANT: the server hash will be different \

Implementation

Future<List<BlobUploadResult>> upload({
  required NdkFile file,
  List<String>? serverUrls,
  bool serverMediaOptimisation = false,
}) {
  return _blossom.uploadBlob(
    data: file.data,
    serverUrls: serverUrls,
    contentType: file.mimeType,
    serverMediaOptimisation: serverMediaOptimisation,
  );
}