[dokuwiki] Re: document link

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

Other related posts: