code: @Override
  	protected boolean beforeHandleRequest(final Request request) {
  
  		// Clear file upload ID (if set)
  		setFileUploadRequestId(null);
  
  		// Check if is targeted request (thumbnail request or file content request)
  		String targetParam = request.getParameter(Environment.TARGET_ID);
  		boolean targetted = (targetParam != null && targetParam.equals(getTargetId()));
  		if (targetted) {
  			doHandleTargetedRequest(request);
  			return false;
  		}
  
  		// Check if AJAX trigger
  		if (isCurrentAjaxTrigger()) {
  			// Upload file request (check for multi part and file id)
  			if (request.getParameter(FILE_UPLOAD_MULTI_PART_ID_KEY) != null && request.getFileItems(getId()) != null) {
  				doHandleUploadRequest(request);
  				return false;
  			}
  			// File in list selected by the user
  			if (request.getParameter(FILE_UPLOAD_ID_KEY) != null) {
  				doHandleFileAjaxActionRequest(request);
  				return false;
  			}
  		}
  
  		return true;
  	}
docs: {@inheritDoc}