File Manager

Contents

1. Introduction
    1.1 Features
    1.2 Assumptions

2. File Manager overview

3. Managing files
    3.1 Add (upload) files
    3.2 Create subfolders

4. Delete files and folders

5. Using files: file paths

6. VIRUS!

7. Known issues

8. Concluding remarks

1. Introduction

The File Manager is used to upload materials like images, documents, sounds and video, etc. i.e. files to the locations like Areas, Sections, Pages, groups of Users or the My Files of individual Users.

WARNING:
It's important to fist choose the right folder before uploading files. It is good practice to store files for an Area in its Area, i.e. not in another place.. Eventually subfolders can be created in the Area.
The same goes for Groups, Users and My Files, i.e. the personal files of the user that is logged in.

NOTE:
An example: saving files destined for Areas in your own 'My Files' folder results in broken links when you leave the school and your account is deleted.

A user like Andrew Reese (see Basic procedures for beginners), pupil of the Seniors, stores the pictures to his poems in his My Files folder, for example in a subfolder Poems.

NOTE:
Please bear in mind that links in pages, for example images, are stored in their Areas. When moving an Area to another Area, or moving a section with pages to another Area, also change their links.

NOTE:
Take care when deleting files! They might be in use elsewhere. It is not possible to move files with the File Manager. This is a feature.

1.1 Features

The features of the File Manager, in no specific order:

Most items in the File Manager are configurable. Please see the chapter Configuration Manager, paragraph 4. Site for configuration and details.

1.2 Assumptions

This chapter elaborates on other chapters. We assume you have read and done the General part of the Table of Contents.

(top)

2. File Manager overview

To enter the the File Manager, please click on the File Manager [ files ] icon to open its dialogue:
[ My Files /users/wblader ]
filemanager_file_manager_my_files.png

My Files is the default opening dialogue after the user has logged in.

[1] NOTE:
In this case, Wilhelmina Bladergroen is the webmaster who has full access to all Areas, Groups and Users, and of course her own My Files. If Andrew would log in, he sees:
[ My Files /users/Andrew ]
filemanager_file_manager_user_andrew_my-files.png

After logging in Andrew also has access to his My Files. Wilhelmina has set access to the File Manager in Andrews Admin permissions.
Several icons are grayed out (Module Manager, Account Manager, Configuration Manager, Statistics and Tools), indicating that Andrew has no access to these functions. The File Manager is accessible.
When Andrew clicks Areas, he would not have seen the other Areas (Exemplum Primary School, Exemplum Intranet and Exemplum inactive):

[ Areas /areas ]
filemanager_file_manager_user_andrew_areas.png

(top)

3. Managing files

Clicking the File Manager icon [ files ] opens the My Files dialogue:
[ My Files /users/wblader ]
filemanager_file_manager_my_files.png

Explanation:

3.1 Add (upload) files

Clicking the Add (upload) files link, opens the Add (upload) files dialogue:
[ Add (upload) files, entry fields, browse buttons ]
filemanager_file_manager_add_files.png

For this screenshot the maximum number of files is set to 4. The number of uploadable files (default 8) can be set. Please see chapter Configuration Manager paragraph 4. Site for details.

Add (upload) files

Here you can add (upload) new files to the folder 'My Files'. The names of the new files should contain only letters, digits, dots, dashes or (single) underscores. Other characters such as slashes, colons and at-signs are not acceptable and are automatically replaced with an underscore or even removed completely thus changing the name of the file as it is stored. If a file already exists it is preserved and the new file will be stored under another name.

Note:
File size is limited to 4 194 304 bytes, total upload size is limited to 16 777 216 bytes and files per upload is limited to 20.

Explanation:

Click the [Done] button, whereupon you return to the My Files dialogue. Please observe the status messages:
[ My Files, message= success, file added ]
filemanager_file_manager_file_uploaded.png

The image is uploaded to the My Files directory. No virus(es) were detected.

NOTE:
The last line implies that a virus scanner is installed and working properly. For further information on this subject, see chapter Installation, paragraph 4.1 Virus scanning. and section VIRUS!.

3.2 Create subfolders

Clicking the Create a new subfolder link, opens the Create a subfolder dialogue:
[ Create a subfolder, entry field ]
filemanager_file_manager_create_subfolder.png

(top)

4. Delete files and folders

NOTE:
A warning in advance. Take care when deleting files and folders. Most probably they will be in use somewhere in Areas, themes, groups, or in sections and pages. Deleting them can cause broken links to files you do not intend to delete.

We only describe deleting files. Deleting folders is the same procedure, except that in the dialogue file is replaced with folder.

NOTE:
Folders can only be deleted when empty. This is a feature.

[ My Files, /user/wblader, some files ]
filemanager_file_manager_files_uploaded.png

To delete files either:

[ Confirm file delete, some files ]
filemanager_file_manager_delete_file.png

The files to delete are displayed.
Click [Delete] to delete the files or [Cancel] to end your apparently unwise action.


NOTE about copying files when merging or splitting areas


(top)

5. Using files: file paths

Paths to files are set in different ways, depending on where you are. When using one of the WYSIWYG editors to insert a file in a text, the file path is automatically set by the editor. If another editor is used, or you set the path in Bazaar Style Style, the path must be set by you.

Although not really part of the File Manager chapter, also other paths are possible.

[1] For an explanation of 'CMS Root Folder' and 'CMS Program Folder' and 'CMS Data Folder' and 'webserver's Document Root', please see the Installation chapter, paragraph 1.1.3 Webservers and folders.

(top)

6. VIRUS!

On a school with so many users who upload files from everywhere (school, home, Internet cafe, et cetera), virus scanning is an absolute must. See also chapter Install, paragraph 4.1 Virus scanning to check if a virus scanner is installed. When a virus is detected during the upload process, the following message is produced:
[ My Files, /users/wblader, message= virus ]
filemanager_virus_found.png

At the same time, an alert is sent:


There was an attempt to upload a file containing
a virus. The output of the virus scanner is as follows:

/tmp/phpi21GgP: Eicar-Test-Signature FOUND

----------- SCAN SUMMARY -----------
Infected files: 1
Time: 0.000 sec (0 m 0 s)

The currently logged in user was
Wilhelmina Bladergroen (wblader)

and the file was /tmp/phpi21GgP (nice_picture.jpg).

Kind regards,

Your automated webmaster


Observe that we used the innocent test virus eicar.com.

(top)

7. Known issues

8. Concluding remarks

Do the virus check!

(top)

Author: Dirk Schouten <dirk (at) websiteatschool (dot) eu>
Last updated: 2014-09-05, version 1.11