|
@@ -274,6 +274,9 @@ import XLForm
|
|
return
|
|
return
|
|
} else {
|
|
} else {
|
|
|
|
|
|
|
|
+ //Trim whitespaces after checks above
|
|
|
|
+ fileNameForm = fileNameForm.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 {
|
|
fileNameForm = (fileNameForm as! NSString).deletingPathExtension + "." + fileNameExtension
|
|
fileNameForm = (fileNameForm as! NSString).deletingPathExtension + "." + fileNameExtension
|