tinyfilemanager
tinyfilemanager copied to clipboard
preview of pdf, word, audio and video
pls the preview of pdf, word, audio and video does not work
are you trying in localhost, pdf/word preview is not supported in localhost. or in case if you change the $root_path
then you need to adjust the $root_url
accordingly
Hello, first of all congratulations on this project, it is the best I have seen in a long time.
I have the same problem, I have by default:
$ root_path = $ _SERVER ['DOCUMENT_ROOT'];
And that way the previews work perfectly, but if some user assigned a route that starts from like:
ROOT / testfolder / imagestest
I can see the files, but I can't see the previews anymore, any clues?
Thanks in advance
if your modified the $root_path, then you have to configure $root_url correctly. i.e:
$root_path = $_SERVER['DOCUMENT_ROOT'].'/test';
then root url should be like bellow
$root_url = 'test';
For some reason still not working, this is my config file, hope you have a chance to take a look, regards.
@ingluislamas , try this,
$root_path = $_SERVER['DOCUMENT_ROOT'].'proyectos/testproj/Files';
$root_url = 'proyectos/testproj/Files';
$directories_users = array(); //no change required as path is same as root
OK, what if I want different users to access different folders?