Direct download of .pdf files by accessing the sharing link of directory and file name

Hello everyone,

I’m trying to achieve direct/automatic download of PDF files. However, I would like to achieve this by linking to the shared folder and “attaching” the filenames of the files in the folder to the sharing link.

Example:

My link to the shared folder is:

www.your-nextcloud.com/index.php/s/eigip7ceABzuww

and the files in the folder are called:

sample-file-0001.pdf
sample-file-0002.pdf
sample-file-0003.pdf

Calling up the link should now trigger the direct download of the file, so that not all files are must be shared individually.

So for example:

www.your-nextcloud.com/index.php/s/eigip7ceABzuww/sample-file-0002.pdf

Unfortunately this doesn’t work with /download/ before the filename.

Does anyone know any advice?