Php file upload without any error prompt, but the file does not have foreach ($ _ FILES [imgs] [type] & nbsp; as & nbsp; $ k & gt; $ v) {if & nbsp; ($ v & nbsp; imagegif) & nbsp; | & nbsp; ($ v & nbsp; imagejpeg) & nbs for PHP file upload without any error prompt, but this file does not exist after file Upload
Foreach ($ _ FILES ['imgs'] ['type'] as $ k => $ v ){
If ($ v = "image/gif") | ($ v = "image/jpeg ") | ($ v = "image/pjpeg ")))
{
If ($ _ FILES ["imgs"] ["error"] [$ k] = 0)
{
$ Fname = md5 ($ _ FILES ["imgs"] ["name"] [$ k]). '. '. pathinfo ($ _ FILES ["imgs"] ["name"] [$ k], PATHINFO_EXTENSION );
Move_uploaded_file ($ _ FILES ["imgs"] ["tmp_name"] [$ k], $ fname );
}
}
Else
{
Echo "Invalid file ";
}
}
No error message... The location of $ _ FILES ["imgs"] ["tmp_name"] is C: \ WINDOWS \ php2EF. tmp, but no file found in this location .... I used to upload files. it's strange that this is not the case. There is also the winxp system of the local website.
Share To: $ v) {if? ($ V? ==? "Image/gif ")? |? ($ V? ==? "Image... 'data-pics =''>
------ Solution --------------------
Paste your form