Script when absolute path is used
Posted: 12 Apr 2016, 23:24
Hi,
I try to avoid that my newsletters can be accessed from internet directly (from unregistred users).
On the setting of the folders https://www.phoca.cz/documents/17-phoca- ... ng-folders, it says :
'Absolute Path - you can set absolute path to download folder. If this parameter is set, then the Download Folder (see above) parameter is ignored. With help of this parameter you can set the download folder to be placed outside public_html folder. This means, that your files cannot be accessed from internet directly, only per script set on your site. Such files can be downloaded by Phoca Download component but cannot be accessed directly from the internet.'
Do you have a model for the script ? And how to use it ?
The pdf files are stored in a file called 'newsletter', at the same level than the file 'www' on the server.
Thanks
I try to avoid that my newsletters can be accessed from internet directly (from unregistred users).
On the setting of the folders https://www.phoca.cz/documents/17-phoca- ... ng-folders, it says :
'Absolute Path - you can set absolute path to download folder. If this parameter is set, then the Download Folder (see above) parameter is ignored. With help of this parameter you can set the download folder to be placed outside public_html folder. This means, that your files cannot be accessed from internet directly, only per script set on your site. Such files can be downloaded by Phoca Download component but cannot be accessed directly from the internet.'
Do you have a model for the script ? And how to use it ?
The pdf files are stored in a file called 'newsletter', at the same level than the file 'www' on the server.
Thanks