Przeglądaj źródła

Fix bug in matching file on the basis of hash logic

Neeraj Gupta 2 lat temu
rodzic
commit
d230edc593
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      lib/utils/file_uploader.dart

+ 2 - 1
lib/utils/file_uploader.dart

@@ -469,7 +469,8 @@ class FileUploader {
     File fileToUpload,
     int toCollectionID,
   ) async {
-    if (fileToUpload.uploadedFileID != -1) {
+    if (fileToUpload.uploadedFileID != -1 &&
+        fileToUpload.uploadedFileID != null) {
       _logger.warning('file is already uploaded, skipping mapping logic');
       return false;
     }