Admin |
PmWiki /
Uploadsauthors (intermediate) PmWiki can be configured to allow authors to upload and store files and images (known as attaching them). These attachments may then be referenced from any page. Note: PmWiki is distributed with uploads disabled by default. See Uploads Admin for information about how to enable and configure the upload feature.
Note2: Uploads can be configured site-wide, by-group, or by-page; see Uploads Admin for details. This determines whether all uploads go in one directory for the site, an individual directory for each group, or an individual directory for each page. The default is to organize uploads by group.
|
Category | Extensions |
---|---|
image files | gif, jpg, jpeg, png, bmp, ico, wmf, wbmp, xcf, webp, avif See Images for the files PmWiki automatically displays as images. |
audio | mp3, au, wav, ogg, flac, opus, m4a |
video | ogv, mp4, webm, mpg, mpeg, mov, qt, avi, mkv |
archives | zip, 7z, gz, tgz, rpm, hqx, sit |
office | pdf, odt, ods, odp, odg, doc, docx, ppt, pptx, xls, xlsx, mdb, rtf, csv |
executables | exe |
Adobe | psd, ps, ai, eps |
text files | txt, tex, dvi |
misc | kml, kmz |
At present uploaded files can only be deleted from the server by the wiki administrator. Any uploads-authorized user may over-write an existing file by uploading another of the same name and extension to the same location.
The administrator may remove an uploaded file by accessing the server via ftp (or via a control panel, if the host offers such a feature). The recipe Cookbook:Attachtable allows the deletion of the files from the wiki.
When I upload a file, how do I make the link look like "file.doc" instead of "Attach:file.doc Δ"?
Use parentheses, as in [[(Attach:)file.doc]]
. There is also a configuration change that can eliminate the Attach:
-- see Cookbook:AttachLinks.
Why can't I upload files of size more than 50kB to my newly installed PmWiki?
Out of the box PmWiki limits the size of files to be uploaded to 50kB. Add
$UploadMaxSize
= 1000000; # limit upload file size to 1 megabyte
Why does my upload exit unexpectedly with "Incomplete file received"?
You may be running out of space in a 'scratch' area, used either by PmWiki or by PHP. On *nix, check that you have sufficient free space in /tmp and /var/tmp.
How do I make it so that the upload link still allows one to make another upload (if someone wants to replace the old version of a file with a newer version, for example). Currently you only get the upload link when there is no file in the upload directory.
Use the Attach page action, and click on the delta symbol (Δ) shown against each of files listed. If you can't see the attach action either uploads are not enabled, you are not authorized to upload, or the attach action has been commented out or is missing. See also available actions.
How do I hide the " Attach:
" for all attachments
See Cookbook:AttachLinks, note that this does not currently work for [[Attach:my file.ext]]
.
How can I link a file that have a 4-letter file extension such like 'abc.pptx'?
How can I prevent others from using the url's of my images on their site
See Cookbook:Prevent Hotlinking
How can I display a file that lacks a correct extension? (e.g. you are using Cookbook:LinkIcons)
A file can be displayed by addition of a "false" extension to the URL. For example, if the url is https://example.com/dox/mydoc
, add a fake query string on the end with the desired extension (e.g., https://example.com/dox/mydoc?format=.docx
). If query strings are unsuitable, a fragment identifier should work, e.g. https://example.com/dox/mydoc#.docx
.
This page may have a more recent version on pmwiki.org: PmWiki:Uploads, and a talk page: PmWiki:Uploads-Talk.