How to disable upload of files/images from for external website

This article explains how to disable upload of files/images from an external website, Not from the Jira portal in the cloud.


We can disable the upload of images or files for CFJSM, which are configured in external websites by using the below CSS script and below code has to be placed in between <style></style> tags.

button.add-attachment{ 2 display:none!important; 3 } 4 5 button.add-smiley{ 6 right: 10px!important; 7 }

Below are the steps to follow to configure in the external html to disable the upload of Images/files.

  1. go to Project settings >> Chat Settings >> Website Live Chat

  2. Copy the widget installation code and make the changes which are highlighted in red to disable the upload of images/files.

<html>
<body>
<script type="text/javascript">
var spartezSupportChat = {
portal: 1,
cloud: {
jiraId: '8ad73648-24b8-3d3c-bf91-f75ff508305b',
jiraUrl: 'https://saisatyasatti.atlassian.net',
urls: {
rest: 'https://chat-api.spartez-software.com',
ws: 'https://chat-ws.spartez-software.com'
},
}
//meta: [ // optional, custom metadata to store in the issue created from conversation.
// { render: true, name: "Value Name 1", value: val1 }, // "render" values will be displayed in the chat dashboard
// { render: false, name: "Value Name 2", value: val2 },
//],
// delay: 100, // delay between page load and chat load in milliseconds
// container: 'spartez-support-chat-container', // ID of the page element that will be replaced by chat
// iconClass: '', // additional class added to the chat icon
// chatClass: '', // additional class added to the chat widget
// locale: 'en-us' // force a specified locale for displaying texts to the user
// instead of detecting it from the browser
}
</script>
<script type="text/javascript" src="https://chat-api.spartez-software.com/chat.js"</script>>
<style> button.add-attachment{display:none!important;}button.add-smiley{right: 10px!important;} </style>
</body>
</html>

3. Once the changes are done you won’t be able to see the adding attachments option to upload images/files.