Upload file...is not an authorized file extension

Linda Kendrick
Kilo Guru

I added txt to the System Properties > Security > list of file extensions that can be attached without a '.' . When I attach the .txt file, I get a 'txt is not an authorized file extension'.

Using Calagry. I went to the SN demo site and added txt to System Properties > Security and attached the same file and did not get the message. I am wondering if there is something else I need to be checking?

thanks

1 ACCEPTED SOLUTION

Submitted a ticket to HI and it ended up being such a simple thing. Need to make sure don't have ANY spaces so , txt won't work, it needs to be ,txt.


View solution in original post

3 REPLIES 3

faisal_dadabhoy
Giga Expert

Hello,



The system property you are speaking about (System Properties > Security > list of file extensions that can be attache) is blank for me but I am able to attach the test.txt file from your post. I used the incident form to attach the file.



I am wondering if there is any security rule rule that is preventing you to attach the file? I would open a ticket for ServiceNow support, they may have seen this error previously.



Good luck, Faisal


Submitted a ticket to HI and it ended up being such a simple thing. Need to make sure don't have ANY spaces so , txt won't work, it needs to be ,txt.


Craig Hook
Tera Contributor

I am getting the message is not an authorized file extension when using the attachment api to add a picture to a catalog item.   doing a post like this

$attachUri = "https://$instancename/api/now/attachment/file?table_name=sc_cat_item&table_sys_id=" + $id + "&file_name=picture"

$upload= Invoke-RestMethod -Headers $headers -Uri $attachUri -Method Post -InFile "f:\Program Files (x86)\Flexera Software\App Portal\Web\Images\Packages\Objects.png" -ContentType 'multipart/form-data'