[dokuwiki] Re: document link
- From: Guy Brand <gb@xxxxxxxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Sun, 20 Apr 2008 09:42:08 +0200
Olivier Lumineau (olivier.lumineau@xxxxxx) on 15/04/2008 at 17:51 wrote:
> hello,
salut Olivier :-)
> a little question... I searched but didn't find the answer.
> When media are uploaded and linked in a protected page (with acl), is it
> possible to have a direct url like
> http://www.example.fr/_media/test/document.pdf or a direct url with
> authentication ? Because actually I only have *Unauthorized *response...
authentication is not httpd server based, so a direct link to your
file (served through fetch.php) will fail if you are not already
authenticated with DokuWiki as auth_quickaclcheck checks permissions
for the namespace in which the media is uploaded and returns a 401.
direct access to the media directory content or any other file inside
$DOKUWIKI/data is forbidden by a htaccess.
Simple solution: upload the media file in a namespace which is
publicly readable (ACL grants READ access) and link to this file in
your protected page/namespace. Or said differently, don't upload the
file which has to be publicly accessible in your protected namespace.
> Thanks
De rien.
--
bug
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
- References:
- [dokuwiki] darcs changes 2008-04-09
- From: Andreas Gohr
- [dokuwiki] document link
- From: Olivier Lumineau
Other related posts:
- » [dokuwiki] document link
- » [dokuwiki] Re: document link
- [dokuwiki] darcs changes 2008-04-09
- From: Andreas Gohr
- [dokuwiki] document link
- From: Olivier Lumineau