// to allow it be used by the request handler during Mime parsing. Note that we
// us the HttpSession so we avoid any issues with locking the AWSession.
AWSession session = session();
if (parent().hasBinding(BindingNames.maxLength)) {
Integer maxLength = new Integer(intValueForBinding(BindingNames.maxLength));
session.httpSession().setAttribute(fileUploadName(),maxLength);
}
if (parent().hasBinding(BindingNames.encrypt)) {
boolean encrypt = booleanValueForBinding(BindingNames.encrypt);
if (encrypt && parent().hasBinding(BindingNames.file)) {
throw new AWGenericException("File binding not supported when encrypt is requested. Use inputStream binding instead.");