RAP Project Lead at EclipseSource
The evolution of RAP's FileDialog
October 7, 2013 | 1 min ReadThe ability to upload files is key functionality for every Web application and, naturally RAP can upload files too. In the beginning ( RAP 1.2 ), this functionality was provided by a custom widget called Upload. This widget was based on an early version of the Qooxdoo UploadWidget contribution project.
In RAP 1.4 the old Upload widget was deprecated and replaced by a new FileUpload RWT widget responsible for file selection and submission, and a server-side component (FileUpload Incubator project) that receives and stores uploaded files. We’ve encapsulated the entire upload process in an implementation of the SWT FileDialog, which is also available in the incubator.
This FileDialog had several shortcomings:
- Uploading multiple files required too many user interactions
- Selecting and uploading multiple files was not possible
- The implementation for file filtering was confusing
RAP 2.2M2 makes these improvements:
- RWT
FileUploadwidget has been extended to support multiple file selection and submission. FileUploadHandlernow supports multiple files in single request.FileDialoghas a redesigned and simplified UI.
FileDialogautomatically uploads files after selection.- The confusing
FileDialogfile filtering API has been removed.
Enjoy the new FileDialog!
Stay Updated with Our Latest Articles
Want to ensure you get notifications for all our new blog posts? Follow us on LinkedIn and turn on notifications:
- Go to the EclipseSource LinkedIn page and click "Follow"
- Click the bell icon in the top right corner of our page
- Select "All posts" instead of the default setting
