i am using the the gwt uploader, but I have a problem by using CustomSettings. The CustomSettings and the FilePath aren't transferred to the server.
protectedIAsWidgetonCreateWidgetContent(finalINotificationsnotifications,finalStringfileUploadType){VPanelretVal=newVPanel();JSONObjectcustomSettings=newJSONObject();customSettings.put(FileUploadInfoRequest.Properties.Type,newJSONString(fileUploadType));finalUploaderuploader=newUploader().setUploadURL(UrlUtil.buildGWTModuleBasedUrl("documentRepository/upload")).setButtonText("Dateien hier hochladen").setButtonWidth(250).setButtonHeight(50).setCustomSettings(customSettings).setFilePostName("Test");uploader.setUploadProgressHandler(newUploadProgressHandler(){publicbooleanonUploadProgress(UploadProgressEventevt){if(evt!=null)notifications.onNewProgressInfo(evt.getBytesComplete(),evt.getBytesTotal());returntrue;}}).setFileDialogCompleteHandler(newFileDialogCompleteHandler(){publicbooleanonFileDialogComplete(FileDialogCompleteEventevt){uploader.startUpload();returntrue;}}).setUploadSuccessHandler(newUploadSuccessHandler(){@OverridepublicbooleanonUploadSuccess(UploadSuccessEventuploadSuccessEvent){notifications.onSingleUploadSuccessful(uploadSuccessEvent.getServerData());returntrue;}}).setUploadCompleteHandler(newUploadCompleteHandler(){@OverridepublicbooleanonUploadComplete(UploadCompleteEventuploadCompleteEvent){uploader.startUpload();returntrue;}});retVal.add(uploader);return(IAsWidget)retVal;}
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
i am using the the gwt uploader, but I have a problem by using CustomSettings. The CustomSettings and the FilePath aren't transferred to the server.