-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Disable real file path from being shown
troex edited this page Apr 11, 2012
·
13 revisions
If you want to hide real path to the files you can mask them using connector.php
file. Instead of http://localhost/example/path/file.jpg
link shown to client, you will get connector.php?cmd=file&target=HASH_TO_FILE_PATH
.
The only thing needed to get this is to omit (disable) URL
option in connector.php
file.
This is a replacement for for the FileURL
option in the 1.x (old version).
Example:
<?php
$opts = array(
'roots' => array(
array(
'driver' => 'LocalFileSystem', // driver for accessing file system (REQUIRED)
'path' => '../files/', // path to files (REQUIRED)
// DISABLE 'URL' BY COMMENTING THE FOLLOWING LINE OUT
// 'URL' => dirname($_SERVER['PHP_SELF']) . '/../files/', // URL to files (REQUIRED)
)
)
);