_appClass = config.getInitParameter(KEY_APP_CLASS);
String swConfig = config.getInitParameter(KEY_CONFIG);
_charEncoding = getConfig(config, KEY_ENCODING, "UTF-8");
_getAfterPost = ObjectUtils.toBool(config.getInitParameter(KEY_GET_AFTER_POST), true);
// create a new file upload handler
_uploadRepository = new DiskFileUpload();
// set upload parameters
_uploadRepository.setRepositoryPath(System.getProperty("java.io.tmpdir")); //TODO: make become configurable setting
//_uploadRepository.setSizeThreshold(1000000); //file > 1 meg write to disk
_uploadRepository.setSizeThreshold(0); //write any file to disk
_uploadRepository.setSizeMax(-1); //no maximum size