Personal tools
Views

User Handbook/Admin Panel/Content/File Manager

From CMSMS

This page in: English - Deutsch - Français - Svenska - Русский - Norsk - Polski - Nederlands - Español - Lietuvių

Contents

File Manager

The File Manager lets you upload and browse files on your server. The default directory is usually yourcmsfolder/uploads. That means that you can browse any files that are found in the uploads folder and its sub-folders. You can change the default directory in config.php.

Browsing the folders Image:folder.gif is as easy as to click on the folder names. Clicking on a file name opens that file in a new window.

Create New Folder

To add a sub-folder, type a name in the field for "Create New Folder:" and click Create. This way you can create as many levels of folders as you like. The new folder becomes a sub-folder to the current folder/directory.

Upload File

To upload a file to the current directory, click Browse, find the file on your computer and click Send. The URL to the file you uploaded will then be uploads/name_of_folder/filename.

Troubleshooting

Optional Workaround: Fix Permission Denied Errors on some web hosts

On some web hosts, such as using php5.cgi on pair.com, files are always uploaded with a chmod permission of 0600. Changing the "File Creation Mask (umask):" in Site Admin -> Global Settings: and $config['default_upload_permission'] didn't seem to have any effect on one pair.com website.

To prevent permission denied errors when trying to view uploaded files, the following can be done:

 1. Open modules\FileManager\action.upload.php
 2. After this line:
 if (move_uploaded_file($_FILES[$id."file_".$i]["tmp_name"],$thispath)) {
 Add these 2 lines:
 			// Fix permissions: Read and write for owner, read for everybody else
 			chmod($thispath, 0644);
 3. Now files uploaded through the File Manager module should be uploaded with 0644 permissions.

This page in: English - Deutsch - Français - Svenska - Русский - Norsk - Polski - Nederlands - Español - Lietuvių