Includes file upload into wikipages depending on the user rights.
Compatible with DokuWiki
Download and install the plugin using the Plugin Manager using the following URL. Refer to Plugins on how to install plugins manually.
The documentation for the Upload-Plugin can be found at: http://studiy.tu-cottbus.de/projektwiki/gruppen:ag_server:produkte:upload_plugin
To add the upload form to a wiki page use the following syntax
{{upload>[namespace]|[options]}}
Namespace can be relative to the actual namespace or one of two keywords.
The keyword @current@ can be used to upload the files into the current namespace.
The keyword @page@ can be used to upload the files into a namespace with the same name as the page.
OVERWRITE let the user choose wether to overwrite existing files or keep the file that is already there.
RENAMEABLE shows additionally a textfield to rename the file when uploading.
The options are sepererated by | (a pipe), for example:
{{upload>:files:}}
{{upload>@current@|OVERWRITE}}
{{upload>@page@:|OVERWRITE|RENAMEABLE}}
To display the uploaded files, there are other plugins:
I installed it on “DokuWiki Release 2009-02-14b” using Plugin manager, it shows the Upload box, but when I click “upload”, nothing happens - the selected file isn't uploaded. When I change the Form action in the source code to be “lib/exe/mediamanager.php”, it uploads the file but then shows the Media manager instead of the original page…
— Christian Marg 2010/01/05 10:31
I installed the application on the latest stable release, however I have no upload button anywhere added to my wiki sites. There doesn't seem to be a way for users to upload.
— Chad 5 Jan 2010 12:33 PM GMT -4
Should be solved in the current version. — R.Rotta 9 Feb 2011
Nice plugin. Thank you. However, the link that is used in <form … action=””> (file syntax.php, line 39) should be generated with ”wl($ID)”, not ”DOKU_BASE.'doku.php?id='.$ID”, because wl() takes care of the various dokuwiki rewriting possibility.
— schplurtz
schplurtz
France, Finistère 2011/02/18 17:15
In 2012-01-25 “Angua”, the RENAMEABLE-function doesn't work for me. The files are uploaded with their initial filename. — KraligorKraligor
2012/02/24 12:14
Lösung: Replace in action.php in Line 70
$_POST['id'] = $_POST['new_name'];
in
$_POST['mediaid'] = $_POST['new_name'];
- hhoch3 4. May 2012
In 2012-01-25 “Angua” and before you get a permissionmistace which disappears when you log in. (Idea of plugin is great.) — deshideshi
2012-04-13