Set our uploads folder outside of the web apps folderDocs:
/srv/www/uploadsApp:
/srv/www/htdocs/myAppworking perfectly fine for adding/edit records, but now have the gotcha of we can’t view the document due to the path settings.
when link clicked on on the view form, returns: (testing on localhost…)h://lhost:8080/uploads/ID/documents/sub-id/somedoc.pdfthe path in ewcfg is defined as "…/…/uploads"i need to have the docs outside of the web app as I can’t have sniffers/hackers/unauthorized users randomly guessing and viewing these documents at will and would in the future like to use a separte storage partition/drive for documents.can I intercept the setting of $this->attachment->ExportHrefValue = “” and set to “/uploads/ID/documents/sub-id/somedoc.pdf” or “…/…/uploads/ID/documents/sub-id/somedoc.pdf” or is the encrypted path safe enough I can put the uploads back into the web root?thanks,
If you put your files outside the web root of your site, you cannot access them by direct URL. You may enable Tools > Advanced Settings > “Encrypt file Path” so the scripts access the file by code.