Warning: "Invalid file name, does not have valid extension" Only .gif, .tif, .tiff, .jpg, .jpeg, .png, .bmp, .docx, .xlsx, .pptx, .doc, .xls, .ppt, .zip, .jar, .apk, .rar, .pdf, .txt, .xml, .rtf, .properties, .log, .msg, .html, .avi extensions are allowed

Document ID : KB000057232
Last Modified Date : 14/02/2018
Show Technical Document Details

Problem: 

Error when trying to attach a document in Unified Self Service (USS), which is integrated to Service Catalog:

Warning
Invalid file name, does not have valid extension.
Only .gif, .tif, .tiff, .jpg, .jpeg, .png, .bmp, .docx, .xlsx, .pptx, .doc, .xls, .ppt, .zip, .jar, .apk, .rar, .pdf, .txt, .xml, .rtf, .properties, .log, .msg, .html, .avi extensions are allowed

 

Cause:

Service Catalog default configuration allows to attach only the following extensions:

.gif, .tif, .tiff, .jpg, .jpeg, .png, .bmp, .docx, .xlsx, .pptx, .doc, .xls, .ppt, .zip, .jar, .apk, .rar, .pdf, .txt, .xml, .rtf, .properties, .log, .msg, .html, .avi

 

Resolution:

1) Log into Service Catalog Server
2) Go to %USM_HOME%\view\conf\ESAPI.properties
3) Add the extensions you need to use the HttpUtilities.ApprovedUploadExtensions. In this example .sql and .mdb . Example:
HttpUtilities.ApprovedUploadExtensions=.gif,.tif,.tiff,.jpg,.jpeg,.png,.bmp,.docx,.xlsx,.pptx,.doc,.xls,.ppt,.zip,.jar,.apk,.rar,.pdf,.txt,.xml,.rtf,.properties,.log,.msg,.html,.avi,.sql,.mdb
4) Save Changes
5) Restart Service Catalog Services
6) Log out from USS and log into USS again.
7) Try to attach the file. It should work now.