The evolution of RAP’s FileDialog

The evolution of RAP’s FileDialog

The 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.
upload_control
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.
FileDialog
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 FileUpload widget has been extended to support multiple file selection and submission.
    • FileUploadHandler now supports multiple files in single request.
    • FileDialog has a redesigned and simplified UI.

FileDialog_new

  • FileDialog automatically uploads files after selection.
  • The confusing FileDialog file filtering API has been removed.

Enjoy the new FileDialog!

10 Comments
  • david
    Reply
    Posted at 10:27 am, October 8, 2013

    Hi,

    How to validate or check file size and format on the browser client?

    thanks

  • Rajesh Hariharan
    Reply
    Posted at 1:11 pm, October 9, 2013

    Hi,

    i am unable to find the RAP 2.2M2 compatible latest File incubator at the link http://eclipse.org/rap/incubator/

    Could you clarify whether it is out for development or not?

    Raj

  • Rajesh Hariharan
    Reply
    Posted at 2:10 pm, October 9, 2013

    Got it Ivan,

    Thanks for your instant response

    Raj

  • mgsoft
    Reply
    Posted at 3:34 pm, October 31, 2013

    Is there already a plan to release that component? My point is that it is very nice and it’s necessary for many projects but it is loitering in the incubation area for years now!
    I understand that it is necessary that basic widgets must be tested very carefully but at some point of time testing must come to an end…

  • mgsoft
    Reply
    Posted at 5:26 pm, October 31, 2013

    OK, I see!
    But is there any chance that I get a jar-file containing the FileDialog somewhere (for 2.1.1) ? I don’t want to build it by myself.

    This would help me really a lot!!

  • mgsoft
    Reply
    Posted at 5:37 pm, October 31, 2013

    Thank you Ivan,

    I have found the links already but my first impression was that the links were broken and I didn’t see “Show Directory Contents”!

    Best regards!

Post a Comment

Comment
Name
Email
Website