|
@@ -399,6 +399,9 @@ class DocumentPickerViewController: UIDocumentPickerExtensionViewController, CCN
|
|
|
|
|
|
hud.hideHud()
|
|
|
|
|
|
+ // Activity
|
|
|
+ CCCoreData.addActivityFile(fileID, action: "Download File Document Picker", note: "Selector : \(selector) Error : \(message)", session: CCUtility.createRandomString(16), type: k_activityTypeFailure, verbose: Int(k_activityVerboseDebug), account: self.activeAccount)
|
|
|
+
|
|
|
if selector == selectorLoadFileView && errorCode != -999 {
|
|
|
|
|
|
let alert = UIAlertController(title: NSLocalizedString("_error_", comment: ""), message: message, preferredStyle: .alert)
|
|
@@ -416,6 +419,9 @@ class DocumentPickerViewController: UIDocumentPickerExtensionViewController, CCN
|
|
|
|
|
|
let metadata = CCCoreData.getMetadataWithPreficate(NSPredicate(format: "(account == '\(activeAccount!)') AND (fileID == '\(fileID!)')"), context: nil)
|
|
|
|
|
|
+ // Activity
|
|
|
+ CCCoreData.addActivityFile(metadata!.fileName, action: "Download File Document Picker", note: "Selector : \(selector)", session: CCUtility.createRandomString(16), type: k_activityTypeSuccess, verbose: Int(k_activityVerboseDebug), account: metadata!.account)
|
|
|
+
|
|
|
switch selector {
|
|
|
|
|
|
case selectorLoadFileView :
|
|
@@ -459,6 +465,9 @@ class DocumentPickerViewController: UIDocumentPickerExtensionViewController, CCN
|
|
|
|
|
|
hud.hideHud()
|
|
|
|
|
|
+ // Activity
|
|
|
+ CCCoreData.addActivityFile(metadataNet.fileName, action: "Upload File Document Picker", note: "Selector : \(selector) Error : \(message)", session: CCUtility.createRandomString(16), type: k_activityTypeFailure, verbose: Int(k_activityVerboseDebug), account: metadataNet.account)
|
|
|
+
|
|
|
// remove file
|
|
|
CCCoreData.deleteMetadata(with: NSPredicate(format: "(account == '\(activeAccount!)') AND (fileID == '\(fileID)')"))
|
|
|
|
|
@@ -478,6 +487,9 @@ class DocumentPickerViewController: UIDocumentPickerExtensionViewController, CCN
|
|
|
|
|
|
hud.hideHud()
|
|
|
|
|
|
+ // Activity
|
|
|
+ CCCoreData.addActivityFile(metadataNet.fileName, action: "Upload File Document Picker", note: "Selector : \(selector)", session: CCUtility.createRandomString(16), type: k_activityTypeSuccess, verbose: Int(k_activityVerboseDebug), account: metadataNet.account)
|
|
|
+
|
|
|
dismissGrantingAccess(to: self.destinationURL)
|
|
|
}
|
|
|
}
|