Skip to main content
Participating Frequently
Oct 27, 2023 8:17 AM UTC
Question

Specify the destination for each of the multiple uploaded files.

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

4 replies

sriramk5349
Inspiring
Jan 13, 2024 8:46 AM UTC

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
Brainy
Jan 13, 2024 10:58 AM UTC

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
Jan 13, 2024 12:10 PM UTC

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
Genius
Jan 13, 2024 3:30 PM UTC

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.