<?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>The file could not be loaded. Reason: The file extension does not match its underlying type.</title><link>https://community.appian.com/discussions/f/user-interface/39841/the-file-could-not-be-loaded-reason-the-file-extension-does-not-match-its-underlying-type</link><description>Hi! I&amp;#39;m working on version 24.3 with Spanish as the primary language, and I&amp;#39;ve added a document upload component (a!fileUploadField) to an interface with validation to receive only an XLSX document. I used a file originally with an .xlsx extension and</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: The file could not be loaded. Reason: The file extension does not match its underlying type.</title><link>https://community.appian.com/thread/152010?ContentTypeID=1</link><pubDate>Tue, 14 Oct 2025 17:34:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ca1dcdbb-a172-420d-beb8-230910032edd</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;There&amp;#39;s a longstanding and known bug where, for instance, if a user tries to upload a document that&amp;#39;s actually empty (which Appian disallows), that then even after they clear that upload and try uploading a valid file, the error message still (incorrectly) persists.&amp;nbsp; It sounds like, if what Eleeeeeeeeena is saying here is true, a similar (incorrect) behavior might be persisting on the &amp;quot;document type mismatch&amp;quot; error, which I haven&amp;#39;t confirmed (or tested) for myself, but would not surprise me whatsoever.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The file could not be loaded. Reason: The file extension does not match its underlying type.</title><link>https://community.appian.com/thread/151993?ContentTypeID=1</link><pubDate>Tue, 14 Oct 2025 09:28:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:84825435-2527-4b46-861a-d3a5dd99f351</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;Once you upload the correct file, the message should disappear. Make sure you are uploading the document to the same variable that is used in both the value and saveInto parameters.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The file could not be loaded. Reason: The file extension does not match its underlying type.</title><link>https://community.appian.com/thread/151992?ContentTypeID=1</link><pubDate>Tue, 14 Oct 2025 08:27:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d0e30ccf-0025-47cb-b50c-3d621a34a8d5</guid><dc:creator>Eleeeena1204</dc:creator><description>&lt;pre id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Traducci&amp;oacute;n" data-ved="2ahUKEwjbr8f1h6OQAxWUQ6QEHToAAwQQ3ewLegQIDBAV"&gt;&lt;span class="Y2IQFc" lang="en"&gt;Yes, that&amp;#39;s correct, Appian shouldn&amp;#39;t allow it. What happens is that the error message doesn&amp;#39;t go away even when uploading a correct file. This disables the form and forces the user to refresh the entire page and start over. It&amp;#39;s fine that the message may appear, but it shouldn&amp;#39;t persist when uploading another correct file.&lt;/span&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The file could not be loaded. Reason: The file extension does not match its underlying type.</title><link>https://community.appian.com/thread/151981?ContentTypeID=1</link><pubDate>Mon, 13 Oct 2025 17:20:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5bb5d53a-344e-426d-b7dd-57b8adfe95a1</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;&lt;span&gt;Changing a file extension manually does not alter the actual file content, so Appian blocks uploads when the extension and content don&amp;rsquo;t match. You cannot upload such files in Appian.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The file could not be loaded. Reason: The file extension does not match its underlying type.</title><link>https://community.appian.com/thread/151975?ContentTypeID=1</link><pubDate>Mon, 13 Oct 2025 15:16:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5238ebd5-fcf7-4c02-b727-39495c8e3c26</guid><dc:creator>Eleeeena1204</dc:creator><description>&lt;p&gt;&lt;span class="Y2IQFc" lang="en"&gt;From my local desktop, what I do is create a new Excel file, which creates an empty document with an .xlsx extension (for example: test.xlsx): &lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Traducci&amp;oacute;n" data-ved="2ahUKEwjD89ucsqGQAxWeZqQEHWkoF9MQ3ewLegQIDBAV"&gt;&lt;span class="Y2IQFc" lang="en"&gt;If I attach it like this, everything is fine.&lt;/span&gt;&lt;/li&gt;
&lt;li class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Traducci&amp;oacute;n" data-ved="2ahUKEwjD89ucsqGQAxWeZqQEHWkoF9MQ3ewLegQIDBAV"&gt;&lt;span class="Y2IQFc" lang="en"&gt; If I edit the name from the desktop using Windows Explorer and change the .xlsx to .pdf (or any other extension, I can also use .png; it&amp;#39;s just to use the same file by manually changing its extension), the new name would be test.pdf, but it&amp;#39;s the same file. So when I upload this same file with its new extension, I get that error message that I don&amp;#39;t want, and I have to refresh the page and start over. &lt;/span&gt;&lt;/li&gt;
&lt;li class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Traducci&amp;oacute;n" data-ved="2ahUKEwjD89ucsqGQAxWeZqQEHWkoF9MQ3ewLegQIDBAV"&gt;&lt;span class="Y2IQFc" lang="en"&gt;If I create a new file test2.pdf or any other extension and attach it, the message about my validation appears, not the one in the photo I showed in my question, which is also correct.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The file could not be loaded. Reason: The file extension does not match its underlying type.</title><link>https://community.appian.com/thread/151972?ContentTypeID=1</link><pubDate>Mon, 13 Oct 2025 14:04:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f6d04045-5331-4242-a43e-2f5310b3ad7b</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;How you are changing file extension?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The file could not be loaded. Reason: The file extension does not match its underlying type.</title><link>https://community.appian.com/thread/151971?ContentTypeID=1</link><pubDate>Mon, 13 Oct 2025 13:59:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b64e5bd8-fdea-43b8-a744-27b354e7587d</guid><dc:creator>Eleeeena1204</dc:creator><description>&lt;pre id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Traducci&amp;oacute;n" data-ved="2ahUKEwiA4_OrqKGQAxXbBfsDHdN_DT8Q3ewLegQIDBAV"&gt;&lt;span class="Y2IQFc" lang="en"&gt;Hi! Thanks for your quick response, but I don&amp;#39;t think that&amp;#39;s the entire problem. If I upload a file that was originally a .pdf, it doesn&amp;#39;t show this error, only my validation message. The problem lies in manually changing the file extension. If it was originally an .xlsx and I changed it to .pdf, it seems to become &amp;quot;corrupted&amp;quot; and the metadata doesn&amp;#39;t match. It may have something to do with the administration, but I don&amp;#39;t have access to it. However, .pdf files are accepted because they are attached elsewhere in the application. Thanks again. &lt;/span&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The file could not be loaded. Reason: The file extension does not match its underlying type.</title><link>https://community.appian.com/thread/151970?ContentTypeID=1</link><pubDate>Mon, 13 Oct 2025 13:04:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:220b9746-a223-4b74-8e0e-2a4579fcce23</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;This message appears because the PDF file type is blocked in the Admin Console under &amp;#39;File Upload&amp;#39; using file extension blocking settings. The error will remain visible until the user manually refreshes or interacts with the interface; it does not clear automatically. One solution is to allow the file type at the admin level and then apply your own field-level validation in the interface&lt;span&gt;(Make sure to create generic file upload to have consistency)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>