@Override protected String getUploadFlag() { return target.as(Button.class).getUpload(); } }
private String getRealUpload() { Desktop desktop = getDesktop(); String upload = getUpload(); if (desktop != null && !Strings.isEmpty(upload) && !upload.contains("maxsize=")) upload = upload.concat(",maxsize=" + desktop.getWebApp().getConfiguration().getMaxUploadSize()); return upload; }