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

 Methods

Returns a string containing details of the remote connection at the time the security concern was raised.

getDiagnosticMessage() : string
API

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

Returns

string

Get the HTML variable name.

getHtmlName() : string
APIInherited
api
since 1.0.0

Returns

string

Return the message specific for this exception code.

getMessage() 
API
api
since 1.0.0

 Properties

 

The HTML name we were given.

$htmlName : string

Default

 Constants

 

NOT_UPLOADED

NOT_UPLOADED = 1 
 

UNKNOWN_CODE

UNKNOWN_CODE = 2