Skip Navigation
Expand
File Extension Type restrictions when creating incident from Ask a Question page
Answer ID 4686   |   Last Review Date 03/18/2019

How do you restrict file extension types when customers create an incident on the Ask a Question page?

Environment: 

Customer Portal, File Attachments

Resolution:

In Customer Portal, there is a 'valid_file_extensions' attribute in the 'FileAttachmentUpload2' widget where you can define a list of accepted file extensions without leading periods and separated by commas. Please note, the 'valid_file_extensions' default for the attribute is defined by all extensions.

You can edit this widget by going to the path below:

Customer Portal v3.x:

standard/input/FileAttachmentUpload

Example:
<rn:widget path="input/FileAttachmentUpload" valid_file_extensions="gif,pdf,doc"

Customer Portal v2.x:

standard/input/FileAttachmentUpload2