hi,
I am trying to use upload Files function. this is one of the step in my process. I have a final summary screen, which shows the files uploaded and they should appear as document upload link.
I used a!submitUploaded files in the next button, which actually goes to fIle Upload Screen to the summary screen.
It works fine , when I tested the interface. But shows an error in site.
An error occurred while executing a save: Expression evaluation error: a!submitUploadedFiles() cannot be evaluated in this environment.
Target folder is not Document or Folder but marked as Folder.
Also, editor access permissions has been given to the Users for this folder.
Discussion posts and replies are publicly visible
It sounds at first like you might have an issue with whatever you're setting as "target" in your a!fileUploadField() -- can you confirm what your configuration is here? In my working site example with a!submitUploadedFiles() in use, i have the target pointing to a constant set to the upload target folder, and the constant's type is just "folder".
hi Mike , Thanks for the response. target is pointing to a constant set to target folder , type is also "folder"
What Appian version are you on, just to confirm?
23.4
The folder is inside Knowledge Center , I have only set editor access to the target folder but not knowledge center. Should I do something about it ?
Can you clarify whether this is on a Site Page in a User Input Task? As Harshit mentioned below (but i didn't think to clarify already), this function won't work in a User Input Task (sadly), because they want us to actually submit the task and move to a new UIT to display any properties about uploaded documents.
Hi Mike Schmitt ,How are you !!!So i have one query why this is not working for user input task is there any alternative of this we can use so whenever we open input task we can use this.
That's simple. The function a!submitUploadedFiles() was only added to support file uploads in portals. Just do not use it in process start forms or user input tasks.
Understood Thanks !!
As stefan already mentioned - the only supported method for Tasks remains, "submit the form then deal with the uploaded file".