tinyfilemanager icon indicating copy to clipboard operation
tinyfilemanager copied to clipboard

preview of pdf, word, audio and video

Open arnoldkamga opened this issue 3 years ago • 6 comments

pls the preview of pdf, word, audio and video does not work

arnoldkamga avatar Jul 22 '20 17:07 arnoldkamga

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

prasathmani avatar Jul 22 '20 23:07 prasathmani

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

ingluislamas avatar Aug 20 '20 02:08 ingluislamas

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';

prasathmani avatar Aug 20 '20 02:08 prasathmani

For some reason still not working, this is my config file, hope you have a chance to take a look, regards. Captura de Pantalla 2020-08-19 a la(s) 23 43 33

ingluislamas avatar Aug 20 '20 04:08 ingluislamas

@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

prasathmani avatar Aug 20 '20 06:08 prasathmani

OK, what if I want different users to access different folders?

ingluislamas avatar Aug 20 '20 18:08 ingluislamas