<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: File type and size restriction in DevOps forum</title>
    <link>https://www.servicenow.com/community/devops-forum/file-type-and-size-restriction/m-p/2618785#M2906</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/267787"&gt;@Naman Jain2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can achieve this using before Insert Business rule on sys_attachment and add you're catalog condition in BR condition filed which will allow BR Tobe triggered only when you're condition meet.&lt;/P&gt;&lt;P&gt;rest of the logic you can add in script. like check the attached file byte if its greater then abort() else save attachment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this will resolve you're issue. If its resolve you're issue them please mark this as Helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Aniket&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jul 2023 07:56:31 GMT</pubDate>
    <dc:creator>Aniket Narode1</dc:creator>
    <dc:date>2023-07-20T07:56:31Z</dc:date>
    <item>
      <title>File type and size restriction</title>
      <link>https://www.servicenow.com/community/devops-forum/file-type-and-size-restriction/m-p/2613984#M2902</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i have an requirement to restrict the file size and file type when user uploads the file in a catalog item. I want this restriction for a particular catalog item hence i cannot use system properties.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe this could be achieved using script, but i am unaware how and what to do&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 12:57:42 GMT</pubDate>
      <guid>https://www.servicenow.com/community/devops-forum/file-type-and-size-restriction/m-p/2613984#M2902</guid>
      <dc:creator>Naman Jain2</dc:creator>
      <dc:date>2023-07-14T12:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: File type and size restriction</title>
      <link>https://www.servicenow.com/community/devops-forum/file-type-and-size-restriction/m-p/2618785#M2906</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/267787"&gt;@Naman Jain2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can achieve this using before Insert Business rule on sys_attachment and add you're catalog condition in BR condition filed which will allow BR Tobe triggered only when you're condition meet.&lt;/P&gt;&lt;P&gt;rest of the logic you can add in script. like check the attached file byte if its greater then abort() else save attachment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this will resolve you're issue. If its resolve you're issue them please mark this as Helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Aniket&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 07:56:31 GMT</pubDate>
      <guid>https://www.servicenow.com/community/devops-forum/file-type-and-size-restriction/m-p/2618785#M2906</guid>
      <dc:creator>Aniket Narode1</dc:creator>
      <dc:date>2023-07-20T07:56:31Z</dc:date>
    </item>
  </channel>
</rss>

