Using Attachments

With Tiki, you can add any type of file (such as an HTML page or MS-Word document) to a wiki page as an attachment. Visitors (with permission) can add new attachments or view/download existing attachments.

Configuring Wiki Attachments

From the Wiki: Administration page:

  1. Click the Features tab.
  2. On the Features tab, enable the Attachments option.

Enabling the Wiki Attachments.

  1. You can specify if attachments should be displayed automatically and where Tiki should store the attachments.

     Tip

    To edit individual attachments, or to change storage locations, click Manage Attachments.
  2. Click Apply. Tiki saves the information and reloads the page.

 Tip

Database or Directory?
Tiki can store your attachments either in the database or directly on your web server.

The database may be more secure, since web surfers would not be able to edit or change the attachment unless they had access to your database. The directory option may be better for performance, since Tiki would not have to issue a database query each time an attachment was displayed.

If you use a directory, you must make the directory writable. See Set Directory Permissions for more information.

Adding Attachments

As the admin you have full access to add or delete attachments. For other users and groups, you must grant the necessary permission. See Configuring Group Permissions for more information.

On the HomePage, notice that there is now a Files button.

File not found.
  1. Click Attach file. The Upload File area appears below the Home Page..
    Upload File area.

     Note

    If you enabled the Show by default option when enabling the Wiki Attachments feature, the Upload File area is displayed automatically.
  2. Click Browse and select a file from your PC.

     Tip

    You can attach any type of file to the page. The maximum filesize is specified by your php.ini file.
  3. In the Comment area, enter a brief description of the image.
  4. Click Attach. Tiki adds the file to the wiki page. The number of files attached to the page is shown in the button at the bottom of the wiki page.
    Home Page
    The Attach files button.

Files attached tot the Home Page
Visitors (with permission) who click the button 1 File attached button will see a table showing the attachments:

If it doesn't work

If Tiki displays a Cannot write to this file error message, Tiki was unable to upload the file. You enabled the Store in directory option, but Tiki could not save the file.
Make sure that:

  • The path is correct.
  • The directory's permissions allow Tiki to read, write, and update files.


If Tiki displays a white screen while attempting to upload the file, the filesize may be too large. Try increasing the upoad_max_filesize and post_max_size parameters in your php.ini file to allow large attachments.

<HR>

Copyright

This guide is based on content originally published by KeyContent.org.

This guide is Copyright (C) 2007-2013, 2019 by Rick Sapir and others under a Creative Commons Attribution-Share Alike 4.0 License. Some rights reserved.

Essentially, you are are free:

Image

to Share — to copy, distribute and transmit the work
Image

to Remix — to adapt the work


Under the following conditions:

Image
Attribution. You must attribute the work to me, as the original licencor, but not in any way that suggests that I endorse you or your use of the work.
Fair attribution includes a return link to http://tikiforsmarties.com (for online use) and mention of primary author (Rick Sapir) and original publisher (KeyContent.org).
Image

Share Alike. If you alter, transform, or build upon this work, you may distribute the resulting work only under the same, similar or a compatible license.


Please read http://creativecommons.org/licenses/by-sa/3.0/legalcode for the full license.

Tiki®, TikiWiki® and the Tiki logo are registered trademarks of the Tiki Software Community Association, used with permission.