I have created a catalog item in which i have added an attachment upload. now, i want that upload button to accept only .xlsm files. How can i do that?

Nilofer1
Giga Expert

I have created a catalog item in which i have added an attachment upload. now, i want that upload button to accept only .xlsm files. How can i do that? 

1 ACCEPTED SOLUTION

Maik Skoddow
Tera Patron
Tera Patron

Hi @Nilofer 

be careful with the solution proposal of setting the system property "glide.attachment.extensions"!

This will affect the whole platform and no one will be able anymore to upload something different from xlsm files!

Instead, for attachment variables you have to set the variable attribute "allowed_extensions"

See page https://docs.servicenow.com/bundle/rome-servicenow-platform/page/product/service-catalog-management/...

Kind regards
Maik

View solution in original post

2 REPLIES 2

Prasad Dhumal
Mega Sage
Mega Sage

The glide.attachment.extensions property restricts the file extensions that users can upload as attachments.

You can find more about it by visiting the following link:

Configure attachment system properties | ServiceNow Docs

Maik Skoddow
Tera Patron
Tera Patron

Hi @Nilofer 

be careful with the solution proposal of setting the system property "glide.attachment.extensions"!

This will affect the whole platform and no one will be able anymore to upload something different from xlsm files!

Instead, for attachment variables you have to set the variable attribute "allowed_extensions"

See page https://docs.servicenow.com/bundle/rome-servicenow-platform/page/product/service-catalog-management/...

Kind regards
Maik