prasathmani / tinyfilemanager

Single-file PHP file manager, browser and manage your files efficiently and easily with tinyfilemanager
https://tinyfilemanager.github.io
GNU General Public License v3.0
4.63k stars 1.63k forks source link

File download link works but preview doesn't #637

Open glli opened 2 years ago

glli commented 2 years ago

I disabled the direct access to the root folder in the http service config for safety reason (user may keep the file direct link for future use), so user will get 403 error when clicks 'Open' button or directly pastes the file link to the browser. However 'Download' button is working since it's using php query link, something like tinyfilemanager.php?p=&dl=, this is only allowed when a user has logged in. The problem is: Preview sounds like using direct access, not php query, so Preview is broken. Any chance to solve this issue/request?

michael-milette commented 2 years ago

Hi @glli ,

Are you using embedding this in an environment that uses RequireJS / AMD by chance? I am experiencing the same symptom as you. I have everything working except for Preview. Did you ever find a solution to this?

Best regards,

Michael