Browse Source

Fix bug in matching file on the basis of hash logic

Neeraj Gupta 2 năm trước cách đây
mục cha
commit
d230edc593
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      lib/utils/file_uploader.dart

+ 2 - 1
lib/utils/file_uploader.dart

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