Jacob Steenhagen | 9 Feb 22:12
Picon
Gravatar

Re: Can I display a local imaeg file in a DokuWiki page?

It's generally considered bad security practice to allow a user to access things stored at any arbitrary location of the server. The way you're using it is actually quite rare.

Have you tried simply creating a symlink inside <dokuwiki_root>/data/media to /home/chris/pictures (and setting it up so the apache user has access to your /home dir)?

On Sun, Feb 7, 2010 at 10:16 AM, Chris G <cl <at> isbd.net> wrote:
I am running DokuWiki for personal use on my desktop machine (xubuntu
9.10) and would like to display image files stored in the local file
system in DokuWiki but at the moment I can't see any way to do this.

Am I missing something?

The {{xxx:yyy:image.png}} syntax expects the image file to be in a
namespace, and it isn't.  The alternative URL syntax only seems to
recognise http: URLs and the images aren't served by apache.

I've tried a file URL:-
   {{file:///home/chris/pictures/2000s/2009/09 Sept 6-13 - Sarthe/DSCF2019.JPG}}

but DukuWiki just turns this into one long filename with the / and
spaces turned into underscores.

I don't really want to copy the images into DikuWiki, a waste of space
and changes I make to the 'master' image won't get propogated.

--
Chris Green

--
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist



--
http://jacob.steenhagen.us

Gmane