How to retrieve the local files on server side with file name from front pages?

1
0
-1

Hi everyone,

I currently encountered a problem. I have a form where users can select several file names among a lot of names, then we'll lead users to another application page with the selected name(s). Since this redirection does not reflect a process or a task at backend( the pool), I have no way to do some operations( like retrieving the files in my repository by names via Groovy) to manage the documents variable, which means I can't display the files by document_ref in my file viewer.

So is there any method that can help me to realize that?

P.s. I've considered using API extension in that application page, but I found that return type as response includes JSON type data only, Idk how to return files by an API call.

1 answer

1
0
-1

Hello,

If you can't use any groovy script with 'Operation', i think you will need to create your own API that return your file.

Regards,

Notifications