SymLink

Description

This will create a symlink to /path/to/a/server/side/filename in the containing page's attachments directory. You can then access that file from within the wiki with:

attachment:filename 

(where filename has the leading directories stripped to leave just the file name).

/!\ Be aware that if a page is editable by anyone then anyone could insert calls to this macro in order make any file on your computer be an attachment to the page.

Usually, being able to access any file on a server from a web app is considered a severe security issue.

Download & Release Notes

Download

Release Version

Moin Version

Release Notes

SymLink.py

20131031

1.5.8

final version by AlexisHuxley

Usage

Syntax: [[SymLink(/path/to/a/server/side/filename)]]

Example

[[SymLink(/var/local/moin/AlexisWiki/data/plugin/macro/SymLink.py)]]
attachment:SymLink.py

(C) AlexisHuxley 2007-2011 and are distributed under the terms of the GPL.

Bugs

Discussion

MoinMoin: MacroMarket/SymLink (last edited 2013-10-31 19:01:43 by ThomasWaldmann)