Instiki
File Uploads

If you’ve checked the Allow uploads... checkbox for a Web, users can upload files to it with the following procedure:

  1. Edit a page, and add a link of the form

    [[mypic.jpg:pic]]

    or

    [[myfile.pdf:file]]

    Note that the filename entered here will be the filename of the uploaded file on your wiki. It need not be the same as the name of the file on your computer.

  2. Save the page, and click on the resulting link.

  3. This will bring up a file upload dialogue. Choose the file to upload, and enter a brief description.

    • For images, this description will be used as the default alt-text of the image.

    • For files, it will be used as a tooltip. It also serves as the default link text, if you don’t specify alternative link text, as below.

  4. Once the file is uploaded, go back and re-edit the page. After you save, the above links will automagically turn into an <img /> element or link to the file, respectively.

If you want to specify alternative alt-text (or link text), you can use

 [[mypic.jpg|alt text:pic]]

or

 [[myfile.pdf|link text:file]]

It’s also possible to use Markdown-style links to refer to the uploaded files and images. An uploaded image can now be displayed as

   ![alt text](../files/mypic.jpg)

An uploaded file can be linked to as

   [link text](../files/myfile.pdf)

Don’t bother trying it on this wiki; file uploads are not permitted here. On general grounds, I recommend allowing file uploads only on password-protected wikis.