marinofaggiana 3 年之前
父节点
当前提交
32904d0a46

+ 3 - 0
iOSClient/Main/Collection Common/NCCollectionViewCommon.swift

@@ -1388,6 +1388,9 @@ extension NCCollectionViewCommon: UICollectionViewDataSource {
             case NCGlobal.shared.metadataStatusUploading:
                 cell.labelInfo.text = CCUtility.transformedSize(metadata.size) + " - ↑ " + CCUtility.transformedSize(totalBytes)
                 break
+            case NCGlobal.shared.metadataStatusUploadError:
+                cell.labelInfo.text = metadata.sessionError
+                break
             default:
                 break
             }

+ 1 - 1
iOSClient/Networking/NCNetworkingChunkedUpload.swift

@@ -205,7 +205,7 @@ extension NCNetworking {
             
         } else {
                         
-            NCManageDatabase.shared.setMetadataSession(ocId: metadata.ocId, session: nil, sessionError: errorDescription, sessionTaskIdentifier: 0, status: NCGlobal.shared.metadataStatusUploadError)
+            NCManageDatabase.shared.setMetadataSession(ocId: metadata.ocId, session: nil, sessionError: errorDescription, sessionTaskIdentifier: NCGlobal.shared.metadataStatusNormal, status: NCGlobal.shared.metadataStatusUploadError)
             
             let description = errorDescription + " code: \(errorCode)"
             NCContentPresenter.shared.messageNotification("_error_", description: description, delay: NCGlobal.shared.dismissAfterSecond, type: NCContentPresenter.messageType.error, errorCode: NCGlobal.shared.errorInternalError, forced: true)