<?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>fileupload</title><link>https://community.appian.com/discussions/f/new-to-appian/24431/fileupload</link><description>Hi, 
 i have to upload multiple files how can i achieve this without using for loop and the RI to store the files in the db</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: fileupload</title><link>https://community.appian.com/thread/94295?ContentTypeID=1</link><pubDate>Thu, 28 Apr 2022 12:16:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:17cac296-09fa-4b30-915f-0a78f3849e09</guid><dc:creator>vikashk739</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!formLayout(
  label: &amp;quot;Upload File&amp;quot;,
  contents: {
    a!sectionLayout(
      contents: {
        a!fileUploadField(
          label: &amp;quot;File Upload&amp;quot;,
          instructions: &amp;quot;Only xlsx and csv file allowed&amp;quot;,
          labelPosition: &amp;quot;ABOVE&amp;quot;,
          target: cons!MP_UPLOADED_FILE,
          fileNames: substitute(fv!file.name, &amp;quot; &amp;quot;,&amp;quot;_&amp;quot;),
          fileDescriptions: fv!file.name &amp;amp;&amp;quot; &amp;quot;&amp;amp;&amp;quot; uploaded&amp;quot;,
          maxSelections: 2,
          value: ri!document,
          saveInto: {ri!document},
          required: true,
          validations: a!localVariables(
            local!invalidExtension: difference(upper(fv!files.extension),{&amp;quot;XLSX&amp;quot;,&amp;quot;CSV&amp;quot;}),
            {
            if(
              local!invalidExtension&amp;gt;0,
              &amp;quot;Attachments must be xlsx or csv. Remove: &amp;quot; &amp;amp;
              index(fv!files, &amp;quot;name&amp;quot;, wherecontains(local!invalidExtension, upper(fv!files.extension)),{}),
              &amp;quot;&amp;quot;
            )
          }),
          buttonStyle: &amp;quot;SECONDARY&amp;quot;
        )
      }
    ),
    a!sectionLayout(
      label: &amp;quot;&amp;quot;,
      contents: {}
    )
  },
  buttons: a!buttonLayout(
    primaryButtons: {
      a!buttonWidget(
        label: &amp;quot;Submit&amp;quot;,
        submit: true,
        style: &amp;quot;PRIMARY&amp;quot;
      )
    },
    secondaryButtons: {
      a!buttonWidget(
        label: &amp;quot;Cancel&amp;quot;,
        value: true,
        saveInto: ri!cancel,
        submit: true,
        style: &amp;quot;NORMAL&amp;quot;,
        validate: false
      )
    }
  )
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can try this code, you can configure a rule input for document and make it array. The target is the constant for folder&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: fileupload</title><link>https://community.appian.com/thread/94282?ContentTypeID=1</link><pubDate>Thu, 28 Apr 2022 06:14:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0672a75a-ac5b-4881-8ff2-0b7ea548a707</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;One basic thing - To upload a document in Appian, it has to be uploaded in a User input task or a Process start form. So you&amp;#39;ll anyway have to create an interface and map it in the RI. But for this, you just need a RI of document type (list) and map it as the value and save into in the file upload field.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>