<?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 from UI</title><link>https://community.appian.com/discussions/f/general/19984/file-upload-from-ui</link><description>Hi Alll, 
 1.I have a requirement where the user will be having an option to upload any number of files of any format from the UI, Pleaes let us know what would be best way to handle it? 2.Is there any way to store Blob/Clob type ? 3. Is there is size</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: File Upload from UI</title><link>https://community.appian.com/thread/78353?ContentTypeID=1</link><pubDate>Tue, 08 Dec 2020 13:18:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b2424aac-4ae7-48f4-ad03-9bd68159ca82</guid><dc:creator>Richard Michaelis</dc:creator><description>&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote userid="55165" url="~/discussions/f/general/19984/file-upload-from-ui/78352#78352"]When i have created an interface adding a file upload component and then trying to load a file - its temporary generating a temp variable with the document Id. So the file which is uploaded, where exactly the file goes can i store it locally in a folder(sub folder of the project) and store the id in the DB.&amp;nbsp;[/quote]
&lt;p&gt;1.) to get the file available in a appian folder, you need to submit the form.&lt;br /&gt;the function &amp;quot;&amp;nbsp;&lt;code class="highlighter-rouge"&gt;a!fileUploadField()&amp;quot;&lt;/code&gt;&amp;nbsp; has a parameter available called &amp;quot;target fodler&amp;quot;. There you can define the location of your document after submitting&lt;br /&gt;&lt;br /&gt;for that, your traget folder has to be created as part of your application and the folder needs the type of &amp;quot;document folder&amp;quot;.&lt;br /&gt;one idea:&lt;br /&gt;After submitting the Id of the document can easily stored into the DB. create a cdt with &amp;quot;documentId&amp;quot; (integer) attirbute and save the document Id there.&amp;nbsp;&lt;br /&gt;if you save your uploaded document into a rule input you can save the uploaded documents into the cdt.dcoumentId directly or create a rule input which will contain automatically your wanted documentIds and update your cdt.documentId via script task output.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;check&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/20.3/File_Upload_Component.html"&gt;https://docs.appian.com/suite/help/20.3/File_Upload_Component.html&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://docs.appian.com/suite/help/20.3/File_Upload_Component.html"&gt;https://docs.appian.com/suite/help/20.4/folder-and-document-management.html&lt;br /&gt;&lt;br /&gt;2.)&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="55165" url="~/discussions/f/general/19984/file-upload-from-ui/78352#78352"]Is it possible for you to put out all the steps in detail here starting from interface creation and local folder creation and with an example. IT would be really great if this can happen. I am strucked with this from last two to three days.[/quote]
&lt;p&gt;&lt;span&gt;&lt;a href="https://docs.appian.com/suite/help/20.3/File_Upload_Component.html"&gt;i&lt;/a&gt;&amp;nbsp;can do that aflater, per personal massage. it is waay to detailed for that topic here and in general ;)&amp;nbsp;&lt;br /&gt;Try it at first with the provided links above :)&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: File Upload from UI</title><link>https://community.appian.com/thread/78352?ContentTypeID=1</link><pubDate>Tue, 08 Dec 2020 12:58:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bbeca3ac-7011-41b4-92ed-3959b660476e</guid><dc:creator>soumyan0001</dc:creator><description>&lt;p&gt;Hi Richard,&lt;/p&gt;
&lt;p&gt;I was looking to test a simple upload via interface. When i have created an interface adding a file upload component and then trying to load a file - its temporary generating a temp variable with the document Id. So the file which is uploaded, where exactly the file goes can i store it locally in a folder(sub folder of the project) and store the id in the DB.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is it possible for you to put out all the steps in detail here starting from interface creation and local folder creation and with an example. IT would be really great if this can happen. I am strucked with this from last two to three days.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Soumya&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: File Upload from UI</title><link>https://community.appian.com/thread/78165?ContentTypeID=1</link><pubDate>Thu, 26 Nov 2020 13:20:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:74220d3e-f884-4c8b-9efd-a0c854661d6d</guid><dc:creator>Richard Michaelis</dc:creator><description>&lt;p&gt;It would be awesome to get a confirmation as valid answer. if you have questions dont hestiate to ask if something stays unclear.&lt;/p&gt;
&lt;p&gt;hint: perhaps you need some transformation with tointeger() before saving and/or todocument() after loading to have proper formats.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: File Upload from UI</title><link>https://community.appian.com/thread/78162?ContentTypeID=1</link><pubDate>Thu, 26 Nov 2020 13:11:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:132c56cf-032b-45e2-b540-c5bb4076c638</guid><dc:creator>Deepak Shinde</dc:creator><description>&lt;p&gt;yes, this helps&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: File Upload from UI</title><link>https://community.appian.com/thread/78161?ContentTypeID=1</link><pubDate>Thu, 26 Nov 2020 13:07:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0671ee62-8911-45fc-9bef-7cfc4d6527f4</guid><dc:creator>Richard Michaelis</dc:creator><description>&lt;p&gt;i postet a long comment but somebody marked it as spam -&amp;gt; ?&lt;/p&gt;
&lt;p&gt;you can&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;upload the file via upload field&lt;/li&gt;
&lt;li&gt;save the connected documentId into a local or ri&lt;/li&gt;
&lt;li&gt;you can save this received&amp;nbsp;document id in a cdt as integer and store it into a db.&lt;/li&gt;
&lt;li&gt;load the document id via query entity from DB&lt;/li&gt;
&lt;li&gt;make it&amp;nbsp;available for download via doucmentDownload link (icon,image or link)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;does this help?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: File Upload from UI</title><link>https://community.appian.com/thread/78159?ContentTypeID=1</link><pubDate>Thu, 26 Nov 2020 12:45:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5ff07e2c-ee4c-49ac-bc19-14f1dc15c36d</guid><dc:creator>Richard Michaelis</dc:creator><description>&lt;p&gt;Thank you for the addition. Some inputs, which might help.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1.)try to upload your document with&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/20.3/File_Upload_Component.html"&gt;https://docs.appian.com/suite/help/20.3/File_Upload_Component.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;and save the documentIds in a local or ri variable.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can create a new cdt or extend an existing one with &amp;quot;documentid&amp;quot; of type integer.&lt;/p&gt;
&lt;p&gt;There you can save the documentid of the document you uploaded (you can even save arrays of integer here)&lt;/p&gt;
&lt;p&gt;so you just store the reference in your DB.&lt;/p&gt;
&lt;p&gt;to call it:&lt;br /&gt;user a a!queryEntity with the suitable filters -&amp;gt; the result is a datasubset.&lt;/p&gt;
&lt;p&gt;you can adress the document id by the .&amp;quot;data&amp;quot; section of the datasubset and &amp;quot;documentId&amp;quot;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;perhaps&amp;nbsp;a todocument() around the &amp;quot;documentId&amp;quot; is necessary to get a clean type &amp;quot;document&amp;quot;.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/20.3/fnc_conversion_todocument.html"&gt;https://docs.appian.com/suite/help/20.3/fnc_conversion_todocument.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/20.3/fnc_system_a_queryentity.html"&gt;https://docs.appian.com/suite/help/20.3/fnc_system_a_queryentity.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;then perhaps create a link or icon and use &amp;quot;&lt;span&gt;a!documentDownloadLink() to download it.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;the parameter &amp;quot;document&amp;quot; needs just the previous loaded &amp;quot;documentId&amp;quot;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/20.3/Document_Link_Component.html"&gt;https://docs.appian.com/suite/help/20.3/Document_Link_Component.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Does this help your case?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: File Upload from UI</title><link>https://community.appian.com/thread/78157?ContentTypeID=1</link><pubDate>Thu, 26 Nov 2020 12:27:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b8c302a7-2c91-480c-b53a-03f6615d5dfe</guid><dc:creator>Deepak Shinde</dc:creator><description>&lt;p&gt;i need to use appian DB to get image doc id stored into and use for download&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: File Upload from UI</title><link>https://community.appian.com/thread/78156?ContentTypeID=1</link><pubDate>Thu, 26 Nov 2020 12:26:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:be539e36-b794-444f-90b8-0710a108d19b</guid><dc:creator>Deepak Shinde</dc:creator><description>&lt;p&gt;Objective is to store an image and download it, I can store uploads in folder.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;i had refered 20.3 documenation but that was not clear about how ri! variable is used to store documentId, i tried but getting docID stored in ri! or local! variable.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;There is no training video on this to see practically upload and download.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: File Upload from UI</title><link>https://community.appian.com/thread/78150?ContentTypeID=1</link><pubDate>Thu, 26 Nov 2020 07:12:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ea026a61-9384-4ca0-84d0-cac4ead6fecf</guid><dc:creator>Richard Michaelis</dc:creator><description>&lt;p&gt;Hello Deepak,&lt;/p&gt;
&lt;p&gt;1.) i am pretty happy with&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code class="highlighter-rouge"&gt;a!fileUploadField()&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/20.3/File_Upload_Component.html"&gt;https://docs.appian.com/suite/help/20.3/File_Upload_Component.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;2.) what is the technical requirement. Clob and Blob are not really supported. Clob is nothing else then a pretty large string. perhaps we find another solution for your requirement? CLOB and Blob are just oracle and DB2 supported.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-&amp;gt; for blob you can perhaps use this plugin:&lt;/p&gt;
&lt;p&gt;&lt;a href="/b/appmarket/posts/rdbms-blob-utility"&gt;https://community.appian.com/b/appmarket/posts/rdbms-blob-utility&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;3.) what are the targeted numbers? I uploaded around 90 mb of 58 files in the same time. no issue. appian is just loading one doc after the next until finished.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;4.) How do you want to store the file in DB exactly?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>