Browse Source

Update iOSClient/Main/Create cloud/NCCreateFormUploadDocuments.swift

Co-authored-by: Henry <thisisthefoxe@gmail.com>
Adrian 3 years ago
parent
commit
735234a99a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      iOSClient/Main/Create cloud/NCCreateFormUploadDocuments.swift

+ 1 - 1
iOSClient/Main/Create cloud/NCCreateFormUploadDocuments.swift

@@ -275,7 +275,7 @@ import XLForm
         } else {
         } else {
 
 
             //Trim whitespaces after checks above
             //Trim whitespaces after checks above
-            fileNameForm = fileNameForm.trimmingCharacters(in: .whitespacesAndNewlines)
+            fileNameForm = (fileNameForm as! String).trimmingCharacters(in: .whitespacesAndNewlines)
 
 
             let result = NCCommunicationCommon.shared.getInternalType(fileName: fileNameForm as! String, mimeType: "", directory: false)
             let result = NCCommunicationCommon.shared.getInternalType(fileName: fileNameForm as! String, mimeType: "", directory: false)
             if NCUtility.shared.isDirectEditing(account: appDelegate.account, contentType: result.mimeType).count == 0 {
             if NCUtility.shared.isDirectEditing(account: appDelegate.account, contentType: result.mimeType).count == 0 {