|RAP 2.0 FileDialog configuration problems [message #1053484]
||Mon, 06 May 2013 08:39
| René Brandstetter
Registered: July 2012
I hope somebody could help me with my problems concerning the configuration of RAP 2.0 FileDialog to upload some files. Currently I have three problems and I don't know how to solve them.
- configure the max file size to be uploaded
I know that the FileUploadHandler has the possibility to configure the maxFileSize but the instance of the FileUploadHanlder is created directly in the constructor of the UploadPanel and I can't see any possibility to configure it. So those anybody know if there is way to do this?
- display an error message if an error happened during the file upload
I know that errors like "file larger than max file size" and "IO errors" are handled and propagated via a FileUploadListener registered on the FileUploadHandler, but I can't find a way to register my own listener and the one registered within the UploadPanel is only installed if you configure the FileDialog to upload multiple files at once. So if you configure the FileDialog to only upload one file you wouldn't see the error at all and otherwise you only recognize that there is an error if you display the tooltip of the progressbar. So is there a way to change this behavior?
- specify a different FileUploadReceiver
As far as I know it should be possible to change the FileUploadReceiver for doing some additional checks or change the way files are stored, but I can't find any ExtensionPoint or other configuration mechanism to specify this. I had again a look at the UploadPanel and there the DiskFileUploadReceiver was created in the constructor and couldn't be changed afterwards. So is there any way to change this which I haven't seen or should the FileUploadReceiver never be changed?
Powered by FUDForum
. Page generated in 0.11946 seconds