I am trying to build a webpage for file uploading. I copied the code from PHP documententation http://www.php.net/manual/en/features.file-upload.php, but I always get this error message. My machine is Mac OS X and all my other php programs run well.
Possible file upload attack! Here's some debugging info:
Array
(
[userfile] => Array
(
[name] => sop5.pdf
[type] =>
[tmp_name] =>
[error] => 2
[size] => 0
)
)