1

I keep on getting this error when uploading an image with PHP. I know how to count the number of errors:

$file = $_FILES["file"];
echo $file_error = $file["error"];

How do I echo the type of error with PHP?

1 Answers1

1

Have a read through the manuals, it's all in there.

Plus, for your other question in comments:

"Do you know how I can change the max file size in php.ini?"

Consult the following on Stack:

and in the manual on Description of core php.ini directives of course.

Community
  • 1
  • 1
Funk Forty Niner
  • 74,450
  • 15
  • 68
  • 141