<?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>Unable to validate uploaded Excel file extension in interface</title><link>https://community.appian.com/discussions/f/user-interface/39860/unable-to-validate-uploaded-excel-file-extension-in-interface</link><description>Hi everyone, 
 I’m working on an interface where the user needs to upload an Excel file with the .xlsx extension. My goal is to validate the file extension directly in the interface, before enabling the &amp;quot;ACCEPT&amp;quot; button. 
 In my current setup, I’m using</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Unable to validate uploaded Excel file extension in interface</title><link>https://community.appian.com/thread/154057?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2026 18:02:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e702699c-0c58-46e4-a0b2-c195d40c956a</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Yes&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to validate uploaded Excel file extension in interface</title><link>https://community.appian.com/thread/154056?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2026 14:57:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5fe16c21-5fe4-48d7-a443-9d7379389954</guid><dc:creator>vijayasreevasureddye0335</dc:creator><description>&lt;p&gt;Shubham , can we use this document() function to retrive its properties for multiple file in Expression Rule ??&amp;nbsp;&lt;br /&gt;&lt;br /&gt;so we can use that to show form level validation?? if user tries to submit&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to validate uploaded Excel file extension in interface</title><link>https://community.appian.com/thread/152101?ContentTypeID=1</link><pubDate>Mon, 20 Oct 2025 15:01:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d34b062e-53b5-4cfe-821a-700fc6f1d3f5</guid><dc:creator>sreekanth_82</dc:creator><description>&lt;p&gt;&lt;span&gt;You&amp;rsquo;re correct that&amp;nbsp;&lt;/span&gt;&lt;code&gt;touniformstring(local!excel)&lt;/code&gt;&lt;span&gt;&amp;nbsp;only returns the document ID and not the file name or extension. The recommended way to retrieve file details is to use the&amp;nbsp;&lt;/span&gt;&lt;code&gt;document()&lt;/code&gt;&lt;span&gt;&amp;nbsp;function, which works after the file is uploaded and stored as a valid Appian document object.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to validate uploaded Excel file extension in interface</title><link>https://community.appian.com/thread/152097?ContentTypeID=1</link><pubDate>Mon, 20 Oct 2025 11:53:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e39efde9-928a-4b29-9c9d-078f3926570c</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;Starting from 25.3, you can use the document() function in your interface to retrieve uploaded document metadata including the original file name and extension before submitting the form, allowing direct extension validation in the interface.&lt;br /&gt;&lt;br /&gt;&lt;a href="https://docs.appian.com/suite/help/25.3/fnc_scripting_document.html#returns"&gt;docs.appian.com/.../fnc_scripting_document.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to validate uploaded Excel file extension in interface</title><link>https://community.appian.com/thread/152096?ContentTypeID=1</link><pubDate>Mon, 20 Oct 2025 09:56:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a0da5bab-e474-4f35-ab3f-a0f25ab870d7</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;OK, so you try to upload a file outside a process startForm or a user input task. I do not recommend this pattern.&lt;/p&gt;
&lt;p&gt;I think the document() function should give you access to file name and extension to do your validation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to validate uploaded Excel file extension in interface</title><link>https://community.appian.com/thread/152095?ContentTypeID=1</link><pubDate>Mon, 20 Oct 2025 09:47:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3cadfb23-b5ca-43f9-a7c4-85b900b549ec</guid><dc:creator>Miquel Lara</dc:creator><description>&lt;p&gt;No, i&amp;#39;ts a Site, and&amp;nbsp;&lt;span&gt;a!submituploadedfiles() + a!startProcess()&amp;nbsp;are working together correctly. already have a validation in the&amp;nbsp;&lt;code data-start="391" data-end="410"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;a!fileUploadField&lt;/span&gt;&amp;nbsp;&lt;/code&gt;to display a message indicating that the file extension must be &lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;code data-start="475" data-end="482"&gt;.&lt;/code&gt;&lt;/span&gt;&lt;code data-start="475" data-end="482"&gt;xlsx&lt;/code&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;code data-start="475" data-end="482"&gt;.&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="nf"&gt;&lt;img style="max-height:124px;max-width:489px;" alt=" " height="124" src="/resized-image/__size/978x248/__key/communityserver-discussions-components-files/13/Captura-de-pantalla-2025_2D00_10_2D00_20-100902.png" width="489" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to validate uploaded Excel file extension in interface</title><link>https://community.appian.com/thread/152094?ContentTypeID=1</link><pubDate>Mon, 20 Oct 2025 09:06:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9e3114ea-b315-478a-9000-672ea6b9a98f</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Is this a portal page? If not, a!submituploadedfiles() + a!startProcess() will not work.&lt;/p&gt;
&lt;p&gt;In general, find a pattern here:&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/25.3/File_Upload_Component.html#all-files-must-be-pdfs"&gt;https://docs.appian.com/suite/help/25.3/File_Upload_Component.html#all-files-must-be-pdfs&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>