Click here to Skip to main content
15,886,774 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hiii ,

kindly check code below and tell me please what is goes wrong .
note : website already hosted now to a real server , not a local server

<?php 
print_r($_FILES['uploaded']) ; 


?>



<html>
<body>
 <form enctype="multipart/form-data" action="./test.php" method="POST">
 Please choose a file: <input name="uploaded" type="file" /><br />
 <input type="submit" value="Upload" />
 </form> 
</body>
</html>


when i run this code and choose any file from my pc , it print below array

Array ( [name] => Desert.jpg [type] => [tmp_name] => [error] => 8 [size] => 0 )


and when i search on error 8 , it shows that upload file extension error

so what is this error meaning and how can i solve this problem
Posted
Comments
Kornfeld Eliyahu Peter 19-Feb-14 10:09am    
UPLOAD_ERR_EXTENSION
Value: 8;
A PHP extension stopped the file upload. PHP does not provide a way to ascertain which extension caused the file upload to stop; examining the list of loaded extensions with phpinfo() may help. Introduced in PHP 5.2.0.
(from PHP help)
Hercal 19-Feb-14 10:30am    
ok i know this error , but how can i solve it
Kornfeld Eliyahu Peter 19-Feb-14 12:38pm    
See you extensions (phpinfo()) and try to pick up the suspects...
If no immediate suspects go one-by-one and disable them until you find the guilty one...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900