Skip to main content
October 27, 2023
Question

Specify the destination for each of the multiple uploaded files.

  • October 27, 2023
  • 4 replies
  • 0 views

インターフェイスに複数の PDF ファイルをアップロードします。各PDFファイルの名前と一致するフォルダーにファイルを保存したい。

4 replies

sriramk5349
January 13, 2024

Hi [mention:9400d9a17e6b4f20b9c44aa2d07b3a86:e9ed411860ed4f2ba0265705b8793d05] ,

First the file will be saved in common folder. Once you submits the form, inside the process model, please check the name of each file using document() function and then with respect to name of document, you can use Move Document Smart Service to move the document into its specific folder. Or easy way can be like if the number of types of files is less, have different upload fields for different types of files.

harshitb6843
January 13, 2024

English, please!!!!

And to answer - Do you already have the folders will the matching names? Because to me, this looks like a really bad idea, to have a dedicated folder for every document. What is your use case that you are working on?

stefanhelzle0001
Brainy
January 13, 2024

In Appian, we use folders to define specific security for classes of documents. As we typically store some meta data of the document to the database, there is no need to create a folder for each document.

mathieud0001
Brainy
January 13, 2024

If you are using a single fileUploadField to upload multiple files, you'll have to use the approach suggested by [mention:e3625867b9174cde8adf66b9ab725141:e9ed411860ed4f2ba0265705b8793d05]. Otherwise, if you have multiple fields, you could configure a different target for the each of the fields.