Not logged in. · Lost password · Register
Forum: General Help and Support Features and Functionality RSS
Fetching private files
gliderman #1
Member since Nov 2019 · 5 posts
Group memberships: Members
Show profile · Link to this post
Subject: Fetching private files

when a user try do access a private page of a dokuwiki, the user gets a polite
Permission Denied
Sorry, you don't have enough rights to continue.

But if the user is given a link to a private file for download, a simple 'Forbidden' is dropped by inc/fetch.functions.php, which is a little bit harsh and not making your wiki very popular. I'm reluctant to modify lib/exe/fetch.php  and function checkFileStatus in inc/fetch.functions.php to at least diisplay a link to the login page with a redirect to download the file  (my dokuwiki use phpbb authentication method).

Is there a plugin to manage  this situation smoothly? Or another solution ?

Thank you, G
This post was edited on 2019-11-13, 18:48 by gliderman.
gholk #2
Member since Dec 2019 · 4 posts
Group memberships: Members
Show profile · Link to this post
how about use the interface of media manager?
the url should be:
you need to change the parameter image to the id of the image.
there will be a simple message warn user that they are not allowed to read file,
but there is still no login interface.

i usually create a page contain the image when i upload image,
which contain the basic information about the image.
for your case, guest could see the login interface at the page contain image.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2020-04-10, 08:59:40 (UTC +02:00)