APPLICATION ERROR #401 (uploading 3mb attachment)

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
newmantisuser
Posts: 68
Joined: 06 Aug 2012, 18:13

APPLICATION ERROR #401 (uploading 3mb attachment)

Post by newmantisuser »

Mantis Version 1.2.11

Hi guys,

I have read http://www.futureware.biz/blog/index.ph ... &tb=1&pb=1 already

Trying to upload a 3MB pdf attachment into mantis and i'm getting the application error #401. Infact I can't even upload a 1.5MB file at this time..anything below 1MB works fine...

Here are my config_inc.php settings for mantis

# The maximum file size to allow as an attachment. You may also have to configure your php.ini file to
# increase the execution time, memory limit, max post size, and max upload size. The PHP value is usually defaulted to 2MB.
# If $g_allowed_files is filled in NO other file types will be allowed
$g_max_file_size = 5000000; # 5MB

as it states, you have to also edit your php.ini file to adjust the settings there

post_max_size = 5M
upload_max_filesize = 5M

yet I am still unable to upload an attachment bigger then 1MB

any ideas?

We are using DATABASE to upload the files.

I have also set the max_packet_size = 5M in my.cnf (mysql config file)

and have restarted all services

i'm stumped.
newmantisuser
Posts: 68
Joined: 06 Aug 2012, 18:13

Re: APPLICATION ERROR #401 (uploading 3mb attachment)

Post by newmantisuser »

This has been fixed.

I changed the /path/to/php/etc/php.ini's memory_limit setting from -1 to 64M

memory_limit = 64M ; Maximum amount of memory a script may consume (128MB)

and then restarted apache.

FIXED!!

:)
Post Reply