upload plugin

Compatible with DokuWiki

  • 2012-01-25 "Angua" unknown
  • 2011-05-25 "Rincewind" unknown
  • 2010-11-07 "Anteater" yes

plugin Includes file upload into wikipages depending on the user rights.

Last updated on
2010-09-08
Provides
Syntax

Tagged with media, upload

Download and Installation

Download and install the plugin using the Plugin Manager using the following URL. Refer to Plugins on how to install plugins manually.

Documentation

The documentation for the Upload-Plugin can be found at: http://studiy.tu-cottbus.de/projektwiki/gruppen:ag_server:produkte:upload_plugin

Syntax

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.

Options

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}}

Features

  • better handling of submitted formular: uses an action plugin to process the formular data
  • correct caching: uses meta-data and the cache_use event to handle the different user access rights and formular visibility
  • nice fieldset and formatting

To display the uploaded files, there are other plugins:

Discussion

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.
schplurtzschplurtz

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

plugin/upload.txt · Last modified: 2012/05/04 16:32 by 77.20.2.233
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsGitXRefTranslate