How to use File Galleries
File Galleries User
The file galleries section of Tiki is a download manager, you can create/edit file galleries which are collections of files, you can define with the permission system who can create file galleries, upload files and download files. Statistics are recorded for each download, rankings where defined for the top downloaded files, most visited file galleries and last uploaded files. Modules are also available to display last changed file galleries, last uploaded files, top downloaded files and top visited file galleries.You can use file galleries to distribute free multimedia (mp3, avis, etc), to distribute software (versions, patches, releases), to add files that users can download from Wiki pages, articles or weblog posts, etc.

If you enable the file galleries section from the admin menu you ll see a menu section in the main menu for file galleries. From the menu according to the permissions you have you will be able to list existing file galleries (where you can create a new gallery) or upload a file to a gallery.
A file gallery is just a collection of files that can be downloaded, files are kept in the Tiki database and the number of downloads for each file are registered.
The List galleries option in the main menu will take you to the following screen:
Listing File Galleries
![]() |
| Old File Gallery listing |
From this screen you can create a new gallery, edit existing galleries, remove existing galleries, upload a file to a gallery or list the contents (files) of an existing gallery. The options you see as a user depend on the permissions the admins have set for your groups.
Creating file galleries
To create a new file gallery click the create new gallery link and the following form will be displayed.

The same form is displayed to edit and existing gallery, you have to fill the gallery name, a description and the maximum number of rows (files) that will be displayed for each page in the file gallery listing.
You can make a gallery invisible to normal users unchecking the gallery is visible to non-admin users checkbox. This can be used to set-up galleries that can t be browsed but contain files that you will make available for downloading in your site using direct links to download the file.
If you want to allow uploads to this gallery from other users check the checkbox above the edit/create button. If the checkbox is not checked then only the gallery creator or admins can upload files to the gallery.
Uploading files
To upload a file you use the following form:

In this form you enter a title and description for the file, the gallery where the file will be stored and then the file from your local disk to upload. If everything goes well you will see a message indicating that the file was uploaded.

Access to the file in the gallery
Link to the file using Wiki syntax (substitue in fileId=x: x = the fileId number):[tiki-download_file.php?fileId=x|file name that you want to display]
Imbed an image
{img src="tiki-download_file.php?fileId=x&thumbnail=y" link="tiki-download_file.php?fileId=x" alt="alternate file name"}
Link to the file using html syntax
<a href="tiki-download_file.php?fileId=x">file name </a>
Batch uploads
(click to expand) Batch Upload Bug in 4.0 and 4.1
If you have the right permission to batch file uploads then you will be able to make a batch upload of files by uploading a .zip file to the gallery and checking the batch-upload checkbox (if you don't check it the zip is uploaded as a single file).
Note that you must only give batch uploading permissions to admin since if users can make batch uploads the results can be unpredictable.
Note that you can use the Batch uploads only when you don't use the database to store the content of the files!
Tikiwiki does not unzip files in the subdirectories of the zip.
Once you have some files uploaded to the gallery you can visit the gallery from the gallery listing menu and see the uploaded files:
Listing file galleries and downloading files

From this screen you will see the gallery description and the files uploaded to this gallery (the number of files per page varies), you can order the list by any of the columns in the listing. Clicking the get link in the actions column will download the file to your local disk.
Permissions
The following permissions can be set for the file galleries section:

The tiki_p_admin_file_galleries is a master permission that automatically includes the other permissions.
Contributors to this page: edmund
,
SEWilco
,
campbe13
,
luci
,
wimvincken
,
ulfthemoose
,
sylvie
,
xavidp
,
mose
and
system
.
Page last modified on Thursday 18 February, 2010 15:17:16 UTC by edmund
.
Sidebar
Featured links
Last changes
Sidebar
To register
To have an account at this site, please register at Tikiwiki.org
, and then use that user name and password to log in here.

