Closed labr1005 closed 7 years ago
Ok, got it. I'm not sure if this is also related to ContentBlocks, because I'm using FileDownloadLink inside a CB File Input field.
In that case this works for me:
Media Source basePath: /xxxxxx/private/uploads/ basePathRelative: No baseUrl: /xxxxxx/private/uploads/ baseUrlReletave: No
Choose this Media Source in the CB field property Media Source Override.
Set &mediaSourceId=0
for the FileDownloadLink snippet call in the CB template.
Using a Media Source that has no baseUrl set and the basePath set to absolute, e.g. when using a directory above the doc root, produces these errors for me when downloading a file using FileDownloadLink.
Media Source basePath: /xxxxxx/private/uploads/ basePathRelative: No baseUrl: baseUrlReletave: Yes/No (doesn't matter)
Requested file (absolute path): /xxxxxx/private/uploads/sub/file.pdf
The file is being downloaded.
But the MODX error log shows this (this is the entry for a single download, not for multiple tries):