Instiki
File Uploads (changes)

Showing changes from revision #15 to #16: Added | Removed | Changed

Uploading Files

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, the image or file link should magically appear on your page. If it doesn’t, 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.

Managing Uploaded Files

You can obtain a list of all files that have been uploaded to your wiki, and selectively delete them, using the Adminstrative Interface.

Alternatively, there’s a quickie shortcut for deleting an individual file or picture. Replace

 [[myfile.pdf:file]]

with

 [[myfile.pdf:delete]]

The resulting link, will look like

Delete myfile.pdf

Clicking on it, and entering the system password, will delete the file in question.