Ability to open documents from a!fileUploadField()

Hello dear community !

I have a use case where the user uploads multiple documents in a fileUploadField but want to be able to open them directly after uploading them in the component. (Want to double check like in Outlook or other softwares).

Is this possible with out of the box fileUploadField?

Thanks in advance,

Regards,

Thomas

  Discussion posts and replies are publicly visible

  • Hi  

    The document doesn't truly exist until the form is submitted.
    You need to include a submit step that transforms the temporary document into a ~proper, document with a non-temporary document Id in order to preview the uploaded file.
    Your design could always include a deletion step if the upload isn't "confirmed".

    For more detail, please review the notes section for the documentation on the file upload component.

    As written:

    • When a file is uploaded, the component updates with a temporary Document representing the uploaded file. Between the upload and the form submission, the file on the server is an inactive temporary file and not accessible except through fv! variables described in the File NameFile Description, and Validations parameters. This is the only way to access file metadata before the form is submitted.