本文檔僅適用於以下語言版本:
簡體中文
疑問
是否有辦法限制特殊字符出現在附件的名稱中?
答案
InvalidAttachmentFilename.properties
從Maximo 6.2.1熱補丁,Maximo 6.2.2熱補丁,Maximo 6.2.3版本以及Maximo 7.1.1.4版本起,我們增加了一個名爲invalidAttachmentFilename.properties的屬性文件。
屬性文件InvalidAttachmentFilename.properties位於\applications\maximo\properties文件目錄下.在該屬性文件中涉及到下列信息:
# -----------------------------------------------------------------
# invalidAttachmentFilename.properties
# -----------------------------------------------------------------
// The following characters, separated by ",", should not be used in the file name when creating a file attachment
// for example, "new!test" is not a valid file name when creating a file attachment.
mxe.doclink.filename.invalidCharacters = !, $, # ,?, :, *, \\, /, <, >, |, `, ;
// The following characters, separated by ",", should not be used as the leading character in the file name when creating a file attachment
// for example, ".test" is not a valid file name when creating a file attachment.
mxe.doclink.filename.invalidLeadingCharacters = ., -
當上傳附件的文件時,文件名中含有上述屬性中涉及到的字符中的任意一個,! $ # ? : * \\ / < > | ` ;將會出現以下錯誤提示:
當上傳附件的文件時,文件名開頭中含有上述屬性中涉及到的字符中的任意一個: . - 將會出現以下錯誤提示: