Configure Pasted images name by default in 17.4 in CA Service Desk Manager
search cancel

Configure Pasted images name by default in 17.4 in CA Service Desk Manager

book

Article ID: 433294

calendar_today

Updated On:

Products

CA Service Management - Service Desk Manager

Issue/Introduction

In Service Desk Manager 17.3.x versions, users could paste snapshots from the clipboard to the attachments section in tickets.

In 17.4 versions this functionality was impacted due to the new version of jQuery 3.6.2.

This functionality is restored and documented in KB 431222.

After this functionality is restored, the pasted images are named pasted-<DATE-TIME>.png

Administrators and or users would like pasted files to be named image.png like in SDM 17.3.x

Environment

Service Desk Manager version 17.4 RU1-RU5

Cause

Restrictions with jQuery 3.6.2 mandate that files must have a unique name.

Resolution

This can be achieved by modifying the NX_ROOT\bopcfg\www\htmpl\default\attmnt_upload.htmpl file as follows:

 if (file) {
 /*if (!file.name || file.name === 'image.png') {
 var ext = file.type ? file.type.split('/')[1] || 'png' : 'png';
 var ts = new Date().toISOString().replace(/[:.]/g, '-');
 var renamedFile = new File([file], 'pasted-' + ts + '.' + ext, { type: file.type });
 pastedFiles.push(renamedFile);
 } else {*/
 pastedFiles.push(file);
 //}
 }

The modifications are underlined, and the main goal is to comment this section.

Due to the sensitivity of modifying the code, Broadcom strongly suggests taking a backup of the attmnt_upload.htmpl file first.

Then verify and test the functionality in a non production environment first. 

If the issue persists, then please revert your changes and open a technical support case with Broadcom. 

 

Additional Information

This issue is fixed in 17.5 GA and is scheduled to be included in 17.4 RU6 which is not released as of the writing of this article in August 2026. 

17.4 RU6 is currently scheduled for release in Q4 2026. This date is subject to change.