Filename (document) - different folder

Hi there,

I want to store all my uploaded files with my own app to nextcloud server which is running on my server.

My app runs on https://forexample.com/app/ - local path: /home/website/forexample.com/
My nextcloud runs on https://nextserver.org - local path: /home/website/nextserver.org/

Both domains are on the same server. Server is based on Linux.

How can I set Filename path (in Form app) that it stores my new file to /home/website/nextserver.org/ ?

I tried to set “Subfolder” to “/home/website/nextserver.org/{idFile}/”, but it does not work.

Please help me out.

Thank you!

Bests,
Mitja

i use a similar thing for users they have their own folder.
set a global in onscriptinit

[idFile] = {idFile};

then in the folder field location use the global