Unable to increase the project document size for upload

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
sri
Posts: 6
Joined: 15 Nov 2006, 10:21

Unable to increase the project document size for upload

Post 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
deboutv
Posts: 507
Joined: 15 Jan 2007, 14:31
Location: La Ciotat, FRANCE
Contact:

Post by deboutv »

What is the Mantis version? the error message (if any)?
Want more plugins to customize Mantis?
=> http://deboutv.free.fr/mantis/

Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux
sri
Posts: 6
Joined: 15 Nov 2006, 10:21

Upload File error

Post 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
deboutv
Posts: 507
Joined: 15 Jan 2007, 14:31
Location: La Ciotat, FRANCE
Contact:

Re: Upload File error

Post 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.
Want more plugins to customize Mantis?
=> http://deboutv.free.fr/mantis/

Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux
sri
Posts: 6
Joined: 15 Nov 2006, 10:21

done the changes suggested, but still have issues

Post 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...
deboutv
Posts: 507
Joined: 15 Jan 2007, 14:31
Location: La Ciotat, FRANCE
Contact:

Re: done the changes suggested, but still have issues

Post 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.
Want more plugins to customize Mantis?
=> http://deboutv.free.fr/mantis/

Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux
sri
Posts: 6
Joined: 15 Nov 2006, 10:21

That is it ... now it works.. Thanks a lot

Post by sri »

Deboutv...

i was behind config files.. and missed checking the path to be configured in Mantis.. a blunder !!

Thank you...
Post Reply