$errorMessage = "The library encountered a problem uploading a file.";
if( $code ){
switch ($code) {
case 256: // The Move command fialed with permission rights
$errorMessage = "The upload file already exists or you did not have permission to write to the directory.";
break;
case 4109:
$errorMessage = "The upload file is over the maximum allowed size for this type of file.";
break;
case 4110:
$errorMessage = "There isn't enough disk space for the selected file.";
break;
case 4111:
$errorMessage = "File selected does not exist.";
break;
case 4112:
case 10752:
$errorMessage = "Uploaded file is corrupted.";
break;
case 4113:
$errorMessage = "Uploaded file is not a ssl pem formatted certificate.
";
break;
case 4114:
$errorMessage = "Certificate validation failed with invalid or expired.
";
break;
case 4115:
$errorMessage = "Certificate does not match the primary key.
";
break;
case 11008:
$errorMessage = "The version of the uploaded system state is not compatible with the library firmware.";
break;
case 11264:
$errorMessage = "Library Serial Number does not match.";
break;
case 4108:
default:
break;
}
}
?>
| = $errorMessage ?> Please try again. |
| Resolve the RAS tickets that exist in the library. |