Attach:
SyntaxAttach:
" followed by a name of an attachment (e.g., "Attach:resume.pdf
"). When the page is displayed, the Attach:
markup becomes one of the following:
[[Attach:image.jpg]]
).
To have a link to an attachment appear without the "Attach:
" at the beginning of the link, use [[(Attach:)file.ext]]
.
To link to attachments on another page or WikiGroup, use Attach:PageName/file.ext
or Attach:Group.PageName/file.ext
.
To link to an uploaded image from another group, you need to refer to a page within another group, not just the group itself. Thus, Attach:Group.SomePage/image_name.ext
. Note, you must use the PageName, but that there is no requirement that the page actually exist.
(:attachlist:)
This will list all files, file size and a link to download the file on the page.
$EnableUploadVersions
=1;
in you local/config.php
, the old versions of the same files are renamed and not removed.
upload
password--see Passwords and PasswordsAdmin.
By default the upload allows the following extensions:
'gif','jpg','jpeg','png','bmp','ico','wbmp', # images 'mp3','au','wav', # audio 'mpg','mpeg','wmf','mov','qt','avi', # video 'zip','gz','tgz','tar','rpm','hqx', # archives 'doc','ppt','xls','exe','mdb', # MSOffice 'pdf','psd','ps','ai','eps', # Adobe 'htm','html','fla','swf', # web stuff 'txt','rtf','exe','tex','dvi','' # misc
How do I link to an uploaded file or image from another group?
UseAttach:Groupname./filename.ext
. Note the extra dot after the group name.
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
to your config.php to increase the limit to 1MB (for example). See UploadsAdmin
for how to further customize limits. Note that both PHP and webservers also place their own limits on the size of uploaded files.
Who 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.