<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>document upload check</title><link>https://community.appian.com/discussions/f/user-interface/35055/document-upload-check</link><description>There is a smart service in my interface known as document upload . When i am uploading any document , it should be in pdf or word format , basically I need to check that User can only upload a pdf or word document . If the user uploads document of different</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: document upload check</title><link>https://community.appian.com/thread/135751?ContentTypeID=1</link><pubDate>Thu, 23 May 2024 11:00:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:606ead43-598a-48fc-8ab1-9095da16b69c</guid><dc:creator>anshikag8127</dc:creator><description>&lt;p&gt;Hi, you can use this in validation.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
        local!invalidExtensions: difference(upper(fv!files.extension), {&amp;quot;PDF&amp;quot;,&amp;quot;DOCX&amp;quot;}),
        if(
          length(local!invalidExtensions) &amp;gt; 0, 
          &amp;quot;Attachments must be pdf or word files. Remove: &amp;quot; &amp;amp; 
          index(fv!files, &amp;quot;name&amp;quot;, wherecontains(local!invalidExtensions, upper(fv!files.extension)), {}), 
          &amp;quot;&amp;quot;
        )
      )&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: document upload check</title><link>https://community.appian.com/thread/135736?ContentTypeID=1</link><pubDate>Thu, 23 May 2024 05:57:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:846c65d5-8223-4baf-b34d-98621a063c85</guid><dc:creator>venkatrea696188</dc:creator><description>&lt;p&gt;you can refer uploaded files using&lt;strong&gt; fv!files in validations&amp;nbsp;&lt;/strong&gt;Use it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/24.1/File_Upload_Component.html#all-files-must-be-pdfs"&gt;https://docs.appian.com/suite/help/24.1/File_Upload_Component.html#all-files-must-be-pdfs&lt;/a&gt;&amp;nbsp; go though this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>