Page 1 of 1
Unable to increase the project document size for upload
Posted: 21 Feb 2007, 10:24
by sri
Hi,
Am trying to increase the size of files that can be attached to in project docs.
$g_allow_file_upload = ON;
$g_max_file_size = 10000000; # 10 MB
$g_file_upload_method = DISK;
In the PHP configuration file :
upload_max_filesize = 16M
but could not succeed.
Pls. suggest.
Thanx
Posted: 21 Feb 2007, 13:20
by deboutv
What is the Mantis version? the error message (if any)?
Upload File error
Posted: 22 Feb 2007, 05:26
by sri
deboutv wrote:What is the Mantis version? the error message (if any)?
hi,
The version is mantis-1.0.5 and am running on Apache. Php5..
If i mention the thresholds i would not see the Add file option itself.
$g_allow_file_upload = ON;
$g_max_file_size = 10000000; # 10 MB
$g_file_upload_method = DISK; #DATABASE,DISK,FTP
$g_upload_project_file_threshold = 10000000;
$g_upload_bug_file_threshold = 5000000;
and if i mask it,
#$g_upload_project_file_threshold = 10000000; only then i am able to see the Add file option
and when i proceed attaching a file, i get this error...
APPLICATION ERROR #500
File upload failed. This is likely because the filesize was larger than is currently allowed by this PHP installation.
and the php.ini has the following conifg
file_uploads = On
upload_tmp_dir = "C:\Program Files\xampp\tmp"
; Maximum allowed size for uploaded files.
upload_max_filesize = 16M
Pls. advise
Re: Upload File error
Posted: 22 Feb 2007, 06:09
by deboutv
sri wrote:deboutv wrote:What is the Mantis version? the error message (if any)?
hi,
The version is mantis-1.0.5 and am running on Apache. Php5..
If i mention the thresholds i would not see the Add file option itself.
$g_allow_file_upload = ON;
$g_max_file_size = 10000000; # 10 MB
$g_file_upload_method = DISK; #DATABASE,DISK,FTP
$g_upload_project_file_threshold = 10000000;
$g_upload_bug_file_threshold = 5000000;
and if i mask it,
#$g_upload_project_file_threshold = 10000000; only then i am able to see the Add file option
Normal
$g_upload_*_threshold must be set to one of the following values: VIEWER, REPORTER, UPDATER, DEVELOPER, MANAGER or ADMINISTRATOR.
and when i proceed attaching a file, i get this error...
APPLICATION ERROR #500
File upload failed. This is likely because the filesize was larger than is currently allowed by this PHP installation.
and the php.ini has the following conifg
file_uploads = On
upload_tmp_dir = "C:\Program Files\xampp\tmp"
; Maximum allowed size for uploaded files.
upload_max_filesize = 16M
Pls. advise
And what about post_max_size (in the php.ini file)?
If you change the php.ini file, don't forget to restart Apache.
done the changes suggested, but still have issues
Posted: 22 Feb 2007, 06:30
by sri
hi,
php.ini now has this config:
----------------
file_uploads = On
upload_tmp_dir = "C:\Program Files\xampp\tmp"
upload_max_filesize = 16M
post_max_size = 16M
and config_inc has:
$g_allow_file_upload = ON;
$g_max_file_size = 10000000; # 5 MB
$g_file_upload_method = DISK; #DATABASE,DISK,FTP
$g_upload_project_file_threshold = REPORTER;
$g_upload_bug_file_threshold = 2000000;
and tried attaching a 3MB file to project docs.
But it throws an Error 503
Invalid upload path directory either does not exist or not writable to webserver...
Re: done the changes suggested, but still have issues
Posted: 22 Feb 2007, 06:41
by deboutv
sri wrote:hi,
php.ini now has this config:
----------------
file_uploads = On
upload_tmp_dir = "C:\Program Files\xampp\tmp"
upload_max_filesize = 16M
post_max_size = 16M
and config_inc has:
$g_allow_file_upload = ON;
$g_max_file_size = 10000000; # 5 MB
$g_file_upload_method = DISK; #DATABASE,DISK,FTP
$g_upload_project_file_threshold = REPORTER;
$g_upload_bug_file_threshold = 2000000;
You need to change $p_upload_bug_file_threshold.
and tried attaching a 3MB file to project docs.
But it throws an Error 503
Invalid upload path directory either does not exist or not writable to webserver...
In the project management page, you need to fill the Upload file path and check that the directory exists and that the webserver could write in it.
That is it ... now it works.. Thanks a lot
Posted: 22 Feb 2007, 07:00
by sri
Deboutv...
i was behind config files.. and missed checking the path to be configured in Mantis.. a blunder !!
Thank you...