attachment size validation

the mail() function

Moderators: macek, egami, gesf

Post Reply
User avatar
minimihi
New php-forum User
New php-forum User
Posts: 238
Joined: Sat Apr 14, 2012 11:57 am
Location: Vilnius, Lithuania

Re: attachment size validation

Post by minimihi » Sat Apr 28, 2012 7:45 pm

What is value of $_FILES['uploaded_file']['error']?

User avatar
minimihi
New php-forum User
New php-forum User
Posts: 238
Joined: Sat Apr 14, 2012 11:57 am
Location: Vilnius, Lithuania

Re: attachment size validation

Post by minimihi » Sat Apr 28, 2012 7:51 pm

"Value: 1; The uploaded file exceeds the upload_max_filesize directive in php.ini."

Reference:
Handling file uploads: Error Messages Explained

User avatar
minimihi
New php-forum User
New php-forum User
Posts: 238
Joined: Sat Apr 14, 2012 11:57 am
Location: Vilnius, Lithuania

Re: attachment size validation

Post by minimihi » Sat Apr 28, 2012 8:14 pm

No, your problem is PHP configuration (php.ini file).
In that file you need to change 'upload_max_filesize' value to a greater one.
By default it is set to '2M' (which is 2MB), you need to increase it

Post Reply

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest