Fixed a wrong error code in upload.php, also wrong version in dropload.php comments.

master 2.2-R58/1.4
YandolsZX 4 years ago
parent 1e8cb89f37
commit 0ad29df912
  1. 2
      dropload.php
  2. 4
      upload.php

@ -1,5 +1,5 @@
<?php
// Imeji Uploader Core Code -- Version 2.1 Revision 58 (Return Proper Error Codes Update)
// Imeji Uploader Core Code -- Version 2.2 Revision 58 (Return Proper Error Codes Update)
//
// Core Variables. Don't change unless you know what you're doing.
$imejicoreversion = "Imeji-Caddy_V2.2_Droploader_R58";

@ -117,8 +117,8 @@ if ($uploadOk == 0) {
} else {
// If anything wrong here, go to failure condition.
//echo "Sorry, there was a problem uploading your file.";
// This part of code should never occur. But in case it does, redirect user to error page with code 500.
header('Location: ./failed.php?error=500');
// This part of code should never occur. But in case it does, redirect user to error page with code 422.
header('Location: ./failed.php?error=422');
}
}
?>

Loading…
Cancel
Save