index.htm
upload.php
$f=$_FILES[jeff_img_upload];
//Judge whether the file has been uploaded
if ($f[error]==4){
echo("<script>alert(Please select the file you want to upload, thank you!);location.href=index.htm;</script>");
}
else{
//Error judgment
if ($f[error]){
echo "Failed, the file is too large! The error code is".$f[error];
exit;
}
//Type judgment
if (substr($f[type], 0, 5) == image) {
switch ($f[type]) {
case image/jpeg:
case image/jpg:
case image/pjpeg:
$ext = .jpg;
break;
case image/gif:
$ext = .gif;
break;
case image/png:
case image/x-png:
$ext = .png;
break;
default:
header(Content-type: text/html; charset=UTF-8);
with with echo("
Latest Articles by Author
-
2024-10-22 09:46:29
-
2024-10-13 13:53:41
-
2024-10-12 12:15:51
-
2024-10-11 22:47:31
-
2024-10-11 19:36:51
-
2024-10-11 15:50:41
-
2024-10-11 15:07:41
-
2024-10-11 14:21:21
-
2024-10-11 12:59:11
-
2024-10-11 12:17:31