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
-
2025-02-26 03:58:14
-
2025-02-26 03:38:10
-
2025-02-26 03:17:10
-
2025-02-26 02:49:09
-
2025-02-26 01:08:13
-
2025-02-26 00:46:10
-
2025-02-25 23:42:08
-
2025-02-25 22:50:13
-
2025-02-25 21:54:11
-
2025-02-25 20:45:11