Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Attachment are losing the extension when name contains dots

Nicol_s2
Tera Expert

Hello all,

 

I'm having a problem with the attachments losing their extension. This happens when there are dots in the file name  (e.g. "TEST ATACHMENT 02.2024.pdf")

 

Initialy it looks fine:

 

Sin título1.png

But as soon as you refresh the file already lost the extension.

Nicol_s2_1-1709199951575.png

 

This is somehow fine for pdf, because it maintains the extension on the Content Type field in the sys_attachment table.

But for other file types like excel it completely brokes it:

 

Sin título3.png

 

Is there anywhat to prevent this? 

0 REPLIES 0