[GH-ISSUE #403] preview of pdf, word, audio and video #293

Closed
opened 2026-03-02 15:57:35 +03:00 by kerem · 6 comments
Owner

Originally created by @arnoldkamga on GitHub (Jul 22, 2020).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/403

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

Originally created by @arnoldkamga on GitHub (Jul 22, 2020). Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/403 pls the preview of pdf, word, audio and video does not work
kerem 2026-03-02 15:57:35 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@prasathmani commented on GitHub (Jul 22, 2020):

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

<!-- gh-comment-id:662752095 --> @prasathmani commented on GitHub (Jul 22, 2020): 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
Author
Owner

@ingluislamas commented on GitHub (Aug 20, 2020):

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

<!-- gh-comment-id:676856644 --> @ingluislamas commented on GitHub (Aug 20, 2020): 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
Author
Owner

@prasathmani commented on GitHub (Aug 20, 2020):

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';
<!-- gh-comment-id:676863348 --> @prasathmani commented on GitHub (Aug 20, 2020): if your modified the $root_path, then you have to configure $root_url correctly. i.e: ```php $root_path = $_SERVER['DOCUMENT_ROOT'].'/test'; ``` then root url should be like bellow ```php $root_url = 'test'; ```
Author
Owner

@ingluislamas commented on GitHub (Aug 20, 2020):

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

<!-- gh-comment-id:677053140 --> @ingluislamas commented on GitHub (Aug 20, 2020): For some reason still not working, this is my config file, hope you have a chance to take a look, regards. <img width="701" alt="Captura de Pantalla 2020-08-19 a la(s) 23 43 33" src="https://user-images.githubusercontent.com/69946912/90717800-0e2bef00-e276-11ea-9740-614df17f6c07.png">
Author
Owner

@prasathmani commented on GitHub (Aug 20, 2020):

@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
<!-- gh-comment-id:677321798 --> @prasathmani commented on GitHub (Aug 20, 2020): @ingluislamas , try this, ```php $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 ```
Author
Owner

@ingluislamas commented on GitHub (Aug 20, 2020):

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

<!-- gh-comment-id:677833717 --> @ingluislamas commented on GitHub (Aug 20, 2020): OK, what if I want different users to access different folders?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tinyfilemanager#293
No description provided.