A specific kind of UploadException: the upload is suspicious.
It's recommended that you also log the session ID, IP address, and other environment for their diagnostic value. The exception message does not include these details for security, but the exception provides a method for extracting them. Example:
try {
$it = new UploadIterator;
} catch (SecurityConcernException $ex) {
error_log($ex->getDiagnosticMessage());
throw $ex;
}
package | Haldayne |
---|---|
inherited_from | \Haldayne\Customs\UploadException |
getDiagnosticMessage() : string
Knowing the remote connection and environment helps frame the context of the problem: patterns of attack, duration, payload sizes. From this data, you can better adapt your environment.
This method captures the session ID, IP address, and other environment details into a string for foresnic diagnostics.
api | |
---|---|
since | 1.0.0 |
string
getHtmlName() : string
api | |
---|---|
since | 1.0.0 |
string
getMessage()
api | |
---|---|
since | 1.0.0 |
$htmlName : string
NOT_UPLOADED = 1
UNKNOWN_CODE = 2