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:

 

Nicol_s2_0-1709200881298.png

 

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

Nicol_s2_1-1709200881300.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:

 

Nicol_s2_2-1709200881301.png

 

Is there any way to prevent this? 

3 REPLIES 3

p_kanczugowski
Tera Guru

Hi @Nicol_s2, I've tried to replicate the same issue on my Washington PDI, and it looks fine:

 

p_kanczugowski_0-1709639367665.png

 

Moreover, the content_type is also preserved correctly in all these cases:

 

p_kanczugowski_1-1709639395155.png

 

Can you be more specific as to what you mean by "losing" the extension? Do those files' names actually change in your instance?

 

Please mark this response as useful and the question as solved if the issue has been solved. Thank you!

Actually I just found the issue. This is not an OOB problem.

It seems that an old customization intended to prevent duplicates was malfunctioning.

I see. I'm glad you've been able to establish the root cause. Have a nice day!