Not logged in. · Lost password · Register
Forum: General Help and Support Features and Functionality RSS
Fetching private files
Avatar
gliderman #1
Member for 3 months · 3 posts
Group memberships: Members
Show profile · Link to this post
Subject: Fetching private files
Hello,

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, 19:48 by gliderman.
Avatar
gholk #2
Member for a month · 4 posts
Group memberships: Members
Show profile · Link to this post
how about use the interface of media manager?
the url should be: http://your.wiki/?image=wiki:logo.png&do=media
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
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2020-01-29, 20:09:49 (UTC +01:00)