<?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>How we can display uploaded file in an interface?</title><link>https://community.appian.com/discussions/f/user-interface/11647/how-we-can-display-uploaded-file-in-an-interface</link><description>How we can display uploaded file in an interface?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How we can display uploaded file in an interface?</title><link>https://community.appian.com/thread/67838?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2019 10:44:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e22e8ef1-d301-4b45-b8ac-f6fda81a2692</guid><dc:creator>rameshb851</dc:creator><description>&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;Hi Aswin&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;a!linkField(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; label:&amp;quot;Upload Documents&amp;quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; labelPosition:&amp;quot;ABOVE&amp;quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; links:{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a!forEach(items:local!Docs.appiandocid, expression:a!documentDownloadLink(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; document:fv!item, &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; label:document(documentId:fv!item, property:&amp;quot;name&amp;quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;Try this&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How we can display uploaded file in an interface?</title><link>https://community.appian.com/thread/67829?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2019 02:28:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:84e6e12f-11eb-4343-a1a8-a2086fc23f78</guid><dc:creator>kowsalyav</dc:creator><description>&lt;p&gt;Aswini,&lt;/p&gt;
&lt;p&gt;Did you achieve it finally? Please provide your inputs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How we can display uploaded file in an interface?</title><link>https://community.appian.com/thread/66996?ContentTypeID=1</link><pubDate>Mon, 03 Jun 2019 22:07:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d815db59-5387-44ca-b52f-42ed75e858d2</guid><dc:creator>karthip0001</dc:creator><description>&lt;p&gt;A bit not relevant to the OP&amp;#39;s question but I found that the documement ID cant be used to retrieve the filename attribute since at this point the file has not uploaded yet.  But if the same document id is passed to a process model then the filename attribute (document function) returns the filename (without extension). &amp;nbsp;We are on 18.2. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How we can display uploaded file in an interface?</title><link>https://community.appian.com/thread/52043?ContentTypeID=1</link><pubDate>Fri, 26 Jan 2018 21:56:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:37514fc1-3643-40ba-a7c0-6f91bd523c36</guid><dc:creator>Abhishek Gaddam</dc:creator><description>Hello,&lt;br /&gt;
&lt;br /&gt;
In the component a!fileUploadField(), you have two fields fileName &amp;amp; target , where you can name the files uploaded in a particular naming pattern and store the file in a folder respectively.Using that name pattern you can access  any file uploaded after it is submitted using the below code. However this only works when we submit the file as displaying the uploaded file is only possible when it is submitted and an id is created.&lt;br /&gt;
&lt;br /&gt;
ri!docName : rule input to store document.&lt;br /&gt;
 &lt;br /&gt;
cons!THETARGETFOLDERCONSTANT : constant which stores the target folder.&lt;br /&gt;
&lt;br /&gt;
  a!richTextItem(&lt;br /&gt;
                text: &amp;quot;   Download&amp;quot;,&lt;br /&gt;
                style: &amp;quot;STRONG&amp;quot;,&lt;br /&gt;
                link: a!documentDownloadLink(&lt;br /&gt;
                  label: &amp;quot;Download&amp;quot;,&lt;br /&gt;
                  document: todocument(&lt;br /&gt;
  folder(findcontentbyattribute(&lt;br /&gt;
  false,&lt;br /&gt;
  &amp;quot;document&amp;quot;,&lt;br /&gt;
  &amp;quot;name&amp;quot;,&lt;br /&gt;
  ri!docName,&lt;br /&gt;
  cons!THETARGETFOLDERCONSTANT&lt;br /&gt;
),&amp;quot;id&amp;quot;)&lt;br /&gt;
) &lt;br /&gt;
                )&lt;br /&gt;
              )&lt;br /&gt;
&lt;br /&gt;
Hope this helps .&lt;br /&gt;
&lt;br /&gt;
regards,&lt;br /&gt;
Abhishek Gaddam.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How we can display uploaded file in an interface?</title><link>https://community.appian.com/thread/52038?ContentTypeID=1</link><pubDate>Fri, 26 Jan 2018 18:51:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:740647a3-be10-446d-ab08-7bd784d52bae</guid><dc:creator>allynj</dc:creator><description>I am doing something very similar, I currently have a document and I have the Document ID&amp;lt; I have selected Document DownLoad Link as my option, &lt;br /&gt;
&lt;br /&gt;
When I open the Expression I see a!document Image (), I am questioning if I begin the Expression with a!document Image or can I do a!DocumentDownloadLink.. &lt;br /&gt;
&lt;br /&gt;
I saw the Expression Sail Code that was documented in a prior answer, I am a little confused..&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How we can display uploaded file in an interface?</title><link>https://community.appian.com/thread/51374?ContentTypeID=1</link><pubDate>Fri, 05 Jan 2018 11:07:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2a95f805-cb8f-4f7f-9b1f-cd3714973751</guid><dc:creator>rommels</dc:creator><description>Hello aswinis ,&lt;br /&gt;
If  your current version is less than 17.4 you can use a upload field with an upload button when you click on upload button you will be able to get document id and pass this document id in document download field if you want to download the document or in image field if you show this on interface.&lt;br /&gt;
If you version is greater than 17.4 you get document id as soon as you upload the document.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How we can display uploaded file in an interface?</title><link>https://community.appian.com/thread/51331?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2018 18:42:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:25b8df9e-f5a4-4b21-9ad5-426121ee417e</guid><dc:creator>Eliot Gerson</dc:creator><description>You are correct. The release notes for this feature can be found here: &lt;a href="https://docs.appian.com/suite/help/17.4/Appian_Release_Notes.html#simpler-file-upload-handling"&gt;docs.appian.com/.../Appian_Release_Notes.html&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How we can display uploaded file in an interface?</title><link>https://community.appian.com/thread/51317?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2018 09:46:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48c5af2b-cdde-49d2-8030-95141187abaf</guid><dc:creator>Harsha Sharma</dc:creator><description>I would suggest you to have a &amp;quot;Upload&amp;quot; button next to the file Upload field. It should be a submit button. So the scenario is user selects a file then click on &amp;#39;Upload&amp;quot;. In the process after the UI node have an XOR to check button value. If it is &amp;#39;Upload&amp;#39; go back to UI else move forward, indicating the form is submitted. Your SAIL should have a!documentDownloadLink() code inside with() so that when the process comes back to UI after upload you can see the document using the permanent doc ID that you pass from the process to UI. The activity chaining plays vital role here. The user will stay at the same page still the process will proceed. Hope it helps.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How we can display uploaded file in an interface?</title><link>https://community.appian.com/thread/51315?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2018 09:32:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7cba1ce5-fa22-40dc-99d9-28bd98f4bcd9</guid><dc:creator>lokeshk</dc:creator><description>I think if you are using latest version 17.4 then as soon as you upload the document, appian provides permanent document id and you can instantly use documentDownloadLink() function to showcase a link to download the uploaded document., if you are using previous versions then you need to first submit the interface, then the document would be getting permanent id and then you can use this id to showcase in interface&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How we can display uploaded file in an interface?</title><link>https://community.appian.com/thread/51310?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2018 08:09:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9a5f227d-744b-4585-895b-d3762e8d0ba9</guid><dc:creator>Rama Thummala</dc:creator><description>&lt;a href="/members/aswinis"&gt;Aswini &lt;/a&gt; , document will not be available till we submit the form. If I understand it correctly, first submit the form, get id of the document and come back to the same form with the document id.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How we can display uploaded file in an interface?</title><link>https://community.appian.com/thread/51307?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2018 07:48:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b2405790-5321-4a22-98b0-fa01c1aca9f4</guid><dc:creator>Ravi Roshan</dc:creator><description>Instead of 800835, please use your variable name.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How we can display uploaded file in an interface?</title><link>https://community.appian.com/thread/51306?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2018 07:47:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b55b35d9-b921-44d8-9be5-cfc8e4704901</guid><dc:creator>Ravi Roshan</dc:creator><description>a!imageField(&lt;br /&gt;
      label: &amp;quot;Document&amp;quot;,&lt;br /&gt;
      labelPosition: &amp;quot;ADJACENT&amp;quot;,&lt;br /&gt;
      images: {&lt;br /&gt;
        a!documentImage(&lt;br /&gt;
          document: a!iconIndicator(&lt;br /&gt;
            icon: &amp;quot;DOC_GENERIC&amp;quot;&lt;br /&gt;
          ),&lt;br /&gt;
          link: a!documentDownloadLink(&lt;br /&gt;
            document: todocument(&lt;br /&gt;
              800835&lt;br /&gt;
            )&lt;br /&gt;
          ),&lt;br /&gt;
          caption: &amp;quot;Image&amp;quot;&lt;br /&gt;
        )&lt;br /&gt;
      },&lt;br /&gt;
      size: &amp;quot;ICON&amp;quot;&lt;br /&gt;
    )&lt;br /&gt;
&lt;br /&gt;
Hope this will help.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How we can display uploaded file in an interface?</title><link>https://community.appian.com/thread/51303?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2018 07:05:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6d20cc8c-b2dd-46e6-98c7-c4b81aa18dbb</guid><dc:creator>annap</dc:creator><description>As per your error, the value is null in &amp;quot;ri!PP_Cdt_UserInput.ImgDoc&amp;quot;, could you check the value and try or for testing use hardcoded value or constant.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How we can display uploaded file in an interface?</title><link>https://community.appian.com/thread/51298?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2018 05:54:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c6b73dfd-f389-4c87-b451-817dd9cd29eb</guid><dc:creator>Aswini </dc:creator><description>a!imageField(&lt;br /&gt;
              label: &amp;quot;&amp;quot;,&lt;br /&gt;
              labelPosition: &amp;quot;ADJACENT&amp;quot;,&lt;br /&gt;
              images: {&lt;br /&gt;
                a!documentImage(&lt;br /&gt;
                  document: ri!PP_Cdt_UserInput.ImgDoc&lt;br /&gt;
                  &lt;br /&gt;
                )&lt;br /&gt;
              },&lt;br /&gt;
              size: &amp;quot;STANDARD&amp;quot;&lt;br /&gt;
            )&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Error :&lt;br /&gt;
Could not display interface. Please check definition and inputs.&lt;br /&gt;
Interface Definition: Expression evaluation error at function a!imageField [line 386]: The image at index 1 in an image gallery component [label=“”] has an invalid value for “document”. “document” must not be null.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How we can display uploaded file in an interface?</title><link>https://community.appian.com/thread/51297?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2018 05:47:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:04dee524-120e-4183-bf26-cbda0969495d</guid><dc:creator>Aswini </dc:creator><description>Am using 17.3 version&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How we can display uploaded file in an interface?</title><link>https://community.appian.com/thread/51296?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2018 05:43:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fab7a3f3-9217-4ce4-96c3-e95c58772d42</guid><dc:creator>annap</dc:creator><description>Use a!imsgeField object and pass a!documentImage(ri!uploadedFile) as image parameter.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How we can display uploaded file in an interface?</title><link>https://community.appian.com/thread/51295?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2018 05:42:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6393dc13-60d3-4f2d-a9a8-fb017e193b94</guid><dc:creator>Aswini </dc:creator><description>Hi, Am not using grid. I just want to display uploaded image in form.&lt;br /&gt;
Thanks&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How we can display uploaded file in an interface?</title><link>https://community.appian.com/thread/51294?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2018 05:19:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1bbda30f-154d-4f27-9b85-1ff5e042b06c</guid><dc:creator>Ravi Roshan</dc:creator><description>Which version you are using? If you are using previous version than 17.3, you need to submit he the form and generate it again using chaining to get the document ID and display the image as radhikam has provided in code below. For current version you will get the ID directly once you upload the file.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How we can display uploaded file in an interface?</title><link>https://community.appian.com/thread/51293?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2018 04:58:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:93b4dca6-dcb8-48a7-96d6-a79deb7a1fd8</guid><dc:creator>radhikam</dc:creator><description>&lt;p&gt;a!gridField(&lt;br /&gt; label: &amp;quot;&amp;quot;,&lt;br /&gt; columns: {&lt;br /&gt; a!gridImageColumn(&lt;br /&gt; label: &amp;quot;document&amp;quot;,&lt;br /&gt; data: a!documentImage(&lt;br /&gt; document: todocument(&lt;br /&gt; ri!document&lt;br /&gt; ),&lt;br /&gt; link: a!documentDownloadLink(&lt;br /&gt; document: todocument(&lt;br /&gt; ri!document&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; ),&lt;br /&gt; size: &amp;quot;ICON&amp;quot;&lt;br /&gt; )&lt;br /&gt; },&lt;br /&gt; value: local!pagingInfo,&lt;br /&gt; totalCount : 10&lt;br /&gt; )&lt;br /&gt; &lt;br /&gt; Using the above code you can display an image to download the document.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How we can display uploaded file in an interface?</title><link>https://community.appian.com/thread/51292?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2018 04:53:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0bba7939-b496-4ff0-b054-23b3fe89b7de</guid><dc:creator>Ravi Roshan</dc:creator><description>&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-discussions-components-files/13/img.PNG"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/img.PNG" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Please see the attachment in case you want to display the uploaded file within a grid.&lt;/p&gt;
&lt;p&gt;local!data.name will be the file name&lt;/p&gt;
&lt;p&gt;local!data.document will be the document id&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How we can display uploaded file in an interface?</title><link>https://community.appian.com/thread/51291?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2018 04:52:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b0139fe8-90c1-490d-8820-e1497597a86c</guid><dc:creator>Aswini </dc:creator><description>I want to display image while uploading only.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How we can display uploaded file in an interface?</title><link>https://community.appian.com/thread/51290?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2018 04:48:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9178dde0-f2af-4e9e-b955-f5a12d6951d5</guid><dc:creator>Ravi Roshan</dc:creator><description>Hello Aswin, &lt;br /&gt;
&lt;br /&gt;
Do you want to display the file name? If you are using the file upload component it gives the file name at the same time. In case you want to display in other screen the file you have uploaded, you can use the a!documentDownloadLink function to display and download the file.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>