APPLICATION ERROR #401 (uploading 3mb attachment)

Get help from other users here.

Moderators: Contributor, Developer

APPLICATION ERROR #401 (uploading 3mb attachment)

Postby newmantisuser » Aug 28, 2012 1:18 pm

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: Aug 06, 2012 1:13 pm

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

Postby newmantisuser » Aug 28, 2012 1:33 pm

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!!

:)
newmantisuser
 
Posts: 68
Joined: Aug 06, 2012 1:13 pm


Return to Help

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 15 guests