I have recently moved from an older Centos server to a new one. I
installed Mantis v1.0.7, imported the mantis data from the old v1.0.6
db, upgraded with 1.0.7 admin tools and we were up and running.
I do have one problem: I can get the file upload to work. The error I
get is #15: "File upload failed. File is not readable by Mantis.
Please check the project settings." FWIW, the file upload worked in
1.0.6 on the old box. I *thought* I had been careful with the settings.
I have been searching through the forum postings, checked the FAQ and
reviewed the manual but I still haven't found a solution. I would be
most grateful for suggestions, solutions or WAGs to help me see what
I have overlooked.
Here is the related part of config_inc.php.
# --- file upload settings --------
# This is the master setting to disable *all* file uploading
# The default value is ON but you must make sure file
uploading is enabled
# in PHP as well. You may need to add "file_uploads =
TRUE" to your php.ini.
$g_allow_file_upload = ON;
# Upload destination: specify actual location in project
# DISK, DATABASE, or FTP.
$g_file_upload_method = DATABASE;
# Files that are allowed or not allowed. Separate items by
# eg. 'php,html,java,exe,pl'
# if $g_allowed_files is filled in NO other file types will
# $g_disallowed_files takes precedence over $g_allowed_files
$g_allowed_files = '';
$g_disallowed_files = '';
# prefix to be used for the file system names of files
uploaded to projects.
# Eg: doc-001-myprojdoc.zip
$g_document_files_prefix = 'doc';
# absolute path to the default upload folder. Requires
trailing / or \
$g_absolute_path_default_upload_folder = '/tracker/files/
# --- end ------
php.ini has these two entries:
file_uploads = On
upload_max_filesize = 10M