Skip to main content
samars4739
New Participant
Nov 23, 2026 8:26 PM UTC
Question

Download a document and uploaded with a!fileUploadField on the same Interface Before submitting the form /used on start form / user input task,

Subject: Download a document and uploaded with a!fileUploadField on the same Interface Before submitting the form /used on start form / user input task,

Hello Appian Community / Support Team,

I'm looking for guidance on a file upload scenario in a process start form and a user input task. Details are below.

Environment
- Appian version:24.4
- Interface used as: [Process start form / User input task] in process model [process model name]

1. Summary
In a process start form or a user input task, the user uploads a document with a!fileUploadField() and then needs to download that same document on the same interface without submitting the form. The download link doesn't work until the form is submitted.

2. Business requirement
After uploading, the user needs to [check the uploaded file / download it to confirm it is the correct version] before deciding whether to submit. Submitting just to get a working link would move the process forward early, so it isn't acceptable for this use case.

3. Current setup
- a!fileUploadField() saves the uploaded file into [ri!document], with target set to [cons!IL_DOCUMENTS_FOLDER].
- a!documentDownloadLink() (inside a!linkField()) points to the same value.

Sample code:

a!fileUploadField(
  label: "Upload Document",
  target: cons!IL_DOCUMENTS_FOLDER,
  value: ri!document,
  saveInto: ri!document,
  maxSelections: 1
),
a!linkField(
  links: a!documentDownloadLink(
    label: "Download uploaded document",
    document: ri!document,
    showWhen: a!isNotNullOrEmpty(ri!document)
  )
)

4. Steps to reproduce
1) Start the process (or open the user input task).
2) Upload a file with the file upload field. The field shows the file name, and the variable gets a document value.
3) Click the download link on the same interface, without submitting.

Expected result: the uploaded file downloads.
Actual result: [paste the exact error, e.g. "Invalid Content ID" / "document does not exist or has been deleted" / nothing happens].

After the form is submitted and the interface is opened again, the same link works.

5. What I already tried: a!submitUploadedFiles()
I tried a!submitUploadedFiles() so the uploaded file would be saved to its target folder before the form is submitted. I called it from the saveInto of a button on the same interface, so the download link could then use the saved document:

a!buttonWidget(
  label: "Confirm Upload",
  saveInto: a!submitUploadedFiles(
    documents: ri!document,
    onSuccess: { /* refresh / show download link */ },
    onError: { /* show error */ }
  ),
  submit: false
)

Result: this doesn't work on a process start form or a user input task. [Describe what you saw, e.g. "the function returns an error" / "nothing happens" / "the document stays temporary and the link still fails".]

6. What I found
- The File Upload Component documentation says that uploaded files go to a temporary folder and are only saved to the target after the form is submitted. Before submission, the value is a temporary document.
- The documentation also says that a!submitUploadedFiles() is meant for interfaces outside a start form or task, such as record actions and site pages. My testing above confirms that it doesn't apply inside a start form or user input task.
- Earlier Community threads describe the same behavior. The usual workaround is to submit the form and loop back to the same task in the process model.

7. Questions
1) Is there a supported way, other than a!submitUploadedFiles(), to make an uploaded document downloadable (or viewable) on the same start form or user input task before the form is submitted?
2) If not, what pattern do you recommend? For example:
   - An "Upload" button that submits and chains back to the same task.
   - Moving the upload step to a record action or site page and using a!submitUploadedFiles().
   - Something else.
3) is this an Appian limitation ?

Thank you in advance for your help.

Best regards,
samar shraideh
Senior Appian Developer 
samar.shraideh97@gmail.com

2 replies

mathieud0001
Genius
Nov 24, 2026 6:27 AM UTC

documentActions was introduced in 25.4

https://docs.appian.com/suite/help/25.4/File_Upload_Component.html#preview-download-and-edit-document-properties

I would recommend an upgrade before going and developing this.

shubhama926776
Brainy
Nov 24, 2026 10:15 AM UTC

Not possible on 24.4: uploaded files stay temporary until submit and a!submitUploadedFiles() doesn’t work on start forms or tasks, so submit and chain back to the same task, or upgrade to 25.4+ .

शुभम्