<?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>File Upload Changing file name on upload</title><link>https://community.appian.com/discussions/f/user-interface/19022/file-upload-changing-file-name-on-upload</link><description>I am using a!fileUploadField component in UI. When uploading a file which is inside a folder (as below) the uploaded file name is changed by Appian to display as CDAOF-~1 
 
 File Path: 
 C:\Users\asrivastava\Desktop\TEMP\Level 1 Nested inside this folder</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: File Upload Changing file name on upload</title><link>https://community.appian.com/thread/74651?ContentTypeID=1</link><pubDate>Wed, 10 Jun 2020 20:35:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:80a93f9d-6575-419c-904f-95c859c2a848</guid><dc:creator>ambrishs</dc:creator><description>&lt;p&gt;That&amp;#39;s likely a reason.&lt;/p&gt;
&lt;p&gt;But It&amp;#39;s strange to not see correct name of an uploaded document while it&amp;#39;s visible correctly in the folder itself. And how would you explain that to users.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: File Upload Changing file name on upload</title><link>https://community.appian.com/thread/74649?ContentTypeID=1</link><pubDate>Wed, 10 Jun 2020 17:55:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4f7cfa7d-ea48-4ed0-b89e-b0c6b0c90762</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;You&amp;#39;re probably hitting a Windows OS-level filename size limit constraint, in which case it isn&amp;#39;t really an issue within Appian, you&amp;#39;re merely observing a side-effect of filename truncation that would be happening anyway.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: File Upload Changing file name on upload</title><link>https://community.appian.com/thread/74648?ContentTypeID=1</link><pubDate>Wed, 10 Jun 2020 17:47:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:176f0d1a-ee2d-421e-9dae-26acd1092309</guid><dc:creator>ambrishs</dc:creator><description>&lt;p&gt;Thanks for sharing the snippet. Again this has nothing to do with instance. As i said this is specific behaviour only observed when uploading file from a folder which is nested deep withing folders resulting in long folder name. If you can try the path i shared on your instance you would understand and have the same experience.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: File Upload Changing file name on upload</title><link>https://community.appian.com/thread/74647?ContentTypeID=1</link><pubDate>Wed, 10 Jun 2020 17:06:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6207c02f-2397-4a0d-bd42-eabff8d10fe0</guid><dc:creator>Shyam Bommakanti</dc:creator><description>&lt;p&gt;Snippet:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!temp,
  {
    a!fileUploadField(
      label: &amp;quot;File Upload&amp;quot;,
      labelPosition: &amp;quot;ABOVE&amp;quot;,
      validations: fv!files.name &amp;amp; &amp;quot;.&amp;quot; &amp;amp; fv!files.extension,
      saveInto: local!temp,
      value: local!temp
    )
  }
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;img class="align-left" style="float:left;" alt=" " src="/resized-image/__size/400x300/__key/communityserver-discussions-components-files/13/CDViewer_5F00_2020_2D00_06_2D00_10_5F00_13_2D00_02_2D00_38.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If the red text is different from the source file name then there maybe an in issue with your Appian instance. I suggest to go to Appian support.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: File Upload Changing file name on upload</title><link>https://community.appian.com/thread/74644?ContentTypeID=1</link><pubDate>Wed, 10 Jun 2020 16:32:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dfbe9111-652b-4515-9333-0eba6dcbf3ea</guid><dc:creator>ambrishs</dc:creator><description>&lt;p&gt;Can you share a code snippet of what you are suggesting.&lt;/p&gt;
&lt;p&gt;Adding fileNames didn&amp;#39;t seem to work.&lt;/p&gt;
&lt;p&gt;a!fileUploadField(label:&amp;quot;Test&amp;quot;,&lt;br /&gt;target:tofolder(1020980),&lt;br /&gt;value:ri!documents,&lt;br /&gt;saveInto:{ri!documents},&lt;br /&gt;maxSelections: 1,&lt;br /&gt;fileNames :fv!file.name&lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: File Upload Changing file name on upload</title><link>https://community.appian.com/thread/74643?ContentTypeID=1</link><pubDate>Wed, 10 Jun 2020 16:07:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:de421a33-670c-4c40-b87f-3c27a7057642</guid><dc:creator>Shyam Bommakanti</dc:creator><description>&lt;p&gt;&lt;span&gt;a!fileUploadField provides a keyword to customize file name fileNames, you can leave it blank to uses the original file name. Test by not setting&amp;nbsp;fileNames and also check if the files are renamed in the process.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>