|
From: Mark P. <ma...@mo...> - 2005-11-18 18:31:19
|
On Nov 14, 2005, at 12:04 PM, Douglas Valkenaar wrote:
> I've gone through all the configuration ideas listed on the Mantis
> help page but cannot get uploading to work. I've tried .txt files,
> .bmp files - nothing. If the system tries to upload the file it
> returns an error.
>
> Anyone have any ideas? I'm running Mantis 1.0.0rc3.
>
> Thanks.
I am having a similar result when attempting the upload:
APPLICATION ERROR #15
File upload failed. File is not readable by Mantis. Please check the
project settings
The upload config values are the Mantis 1.0rc3 defaults, see below. The
file php.ini has "file_uploads = On" in it.
What else should I be checking?
TIA,
- Mark
From config_inc.php
# --- file upload settings --------
# This is the master setting to disable *all* file uploading
functionality
#
# 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;
From config_defaults_inc.php
###################################
# Mantis File Upload Settings
###################################
# --- file upload settings --------
# This is the master setting to disable *all* file uploading
functionality
#
# If you want to allow file uploads, you must also make sure
that they are
# enabled in php. You may need to add 'file_uploads = TRUE'
to your php.ini
#
# See also: $g_upload_project_file_threshold,
$g_upload_bug_file_threshold,
# $g_allow_reporter_upload
$g_allow_file_upload = ON;
# Upload destination: specify actual location in project
settings
# DISK, DATABASE, or FTP.
$g_file_upload_method = DATABASE;
# FTP settings, used if $g_file_upload_method = FTP
$g_file_upload_ftp_server = 'ftp.myserver.com';
$g_file_upload_ftp_user = 'readwriteuser';
$g_file_upload_ftp_pass = 'readwritepass';
# Maximum file size that can be uploaded
# Also check your PHP settings (default is usually 2MBs)
$g_max_file_size = 5000000; # 5 MB
# Files that are allowed or not allowed. Separate items by
commas.
# eg. 'php,html,java,exe,pl'
# if $g_allowed_files is filled in NO other file types will be
allowed.
# $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 = '';
|