Wikka Documentation : FilesActionInfo

HomePage :: Index :: RecentChanges :: Search :: Login/Register
[1332] Latest edit on 2008-11-01 23:23:06 by NilsLindenberg [Removed HomePage link]


Deletions:
HomePage


[1104] Edited on 2008-06-16 09:21:20 by NilsLindenberg [note on file upload limits]


Additions:
Upload limits
As for a default install, a limit of 2 Megabyte for the (maximum) size of a file exists. You can find it in
files.php (line 44)
  1. // $max_upload_size = "1048576"; // 1 Megabyte
  2. $max_upload_size = "2097152"; // 2 Megabyte

If you want to enhance the limit you can do so by changing the file (note that the limit has to be written as a number of bytes).
Please note that PHP itself imposes a limit on file-uploads. You can find the parameter in the
php.ini
upload_max_filesize

with a default set to 2 megabyte.



[303] Edited on 2006-11-19 09:23:47 by YanB [minor formatting typo]


Additions:
FilesActionSafeModeWorkaroundOnce the planned 'autodoc' feature for actions is "live", this page will contain the automatically-generated documentation by just including an action; for now, I've just manually created the text.
VictorManuelVarela
CategoryDocumentation


[204] The oldest known version of this page was created on 2006-09-23 11:45:32 by BrianKoontz [Removed bad links]

History of recent changes for FilesActionInfo
Wikka Documentation

Files Action Documentation

This the documentation page for the Files action.

See also
Mod for the files action
For the development page, take a look at FilesAction.
FilesActionSafeModeWorkaround
Once the planned 'autodoc' feature for actions is "live", this page will contain the automatically-generated documentation by just including an action; for now, I've just manually created the text.

Documentation


Short description
Allows admins to manage files (upload, deletion) and everyone to view a list of them or download them. Or it provides a download-link to a single file.

Parameters
nametyperequired?defaultdescription
downloadstringoptionalprints a link to the file specified in the string
textstringoptionala text for the link provided with the parameter "download"


Long description
The 'upload_path' in the wikka_config must be a writeble directory. A directory by each page will be created to store their attached files. This action will only show/modify the files attached to the current page!

If you want to manage the files, use the action without parameters. You will see a list of the files attached to wikka with "attachment" (name of the file)., "size" and "Date added", ordered descending after "Date added". To donload a file, simply click on the name. As an admin, you will see a "x" left to every file (clicking on it will delete the file). The simple form below the list allows to upload a file.

If you specify a filename with the parameter "download", a link to download this file will be shown (you can change the text for the link with the parameter "text") but not the form.

Usage:
{{files [download="filename"] [text="descriptive text"]}}


example:


Author
VictorManuelVarela


CategoryDocumentation
Creative Common Attribution-ShareAlike License
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.3518 seconds