{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":39825,"path":"platform-administration/t_ModifyImageUploads.md","title":"Disable user access to the image library for HTML area","bundle":null,"doc_type":null,"release":"australia","body":"\n# Disable user access to the image library for HTML area\n\nBy default, users can use and upload images to the image library from an HTML field. You can disable access to the image library from HTML fields. This is only applicable to HTML area and not TinyMCE.\n\n## Before you begin\n\nRole required: admin\n\n## Procedure\n\n1.  Navigate to **All** &gt; **System UI** &gt; **UI Pages**.\n\n2.  Select **html\\_insert\\_image\\_dialog**.\n\n3.  Locate the following lines of code in the **HTML** field and comment them out.\n\n    ```\n    <g:evaluate var=\"jvar_use_dbimage\">\n    \tvar imageGR = new GlideRecord('db_image');\n    \t if(imageGR.isValid())\n    \t\timageGR.canRead();\t\t\t\t\t\t  \n    </g:evaluate>\n    ```\n\n    and\n\n    ```\n    <j:if test= \"${jvar_write_dbimage}\">\n        <j:set var = \"jvar_default_insert_image_type\" value = \"dbimage\" />\n        <g:ui_select_option text = \"${gs.getMessage('Image Library')}\" value = \"dbimage\" selected = \"${jvar_default_insert_image_type}\" />\n    </j:if>\n    ```\n\n4.  Select **Update**.\n\n\n## What to do next\n\nTo remove the **Upload from URL** option in the HTML editor, add a new property named **glide.ui.html.image.allow\\_url** and set the **Value** to **false**.\n\n**Related topics**  \n\n\n[Add a system property](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-administration/t_AddAPropertyUsingSysPropsList.md)\n\n"}}