Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » RAP 2.2M2 FileUpload: Filter specific extension
RAP 2.2M2 FileUpload: Filter specific extension [message #1168688] Sun, 03 November 2013 08:44 Go to next message
Tobias P. is currently offline Tobias P.
Messages: 41
Registered: April 2012
Member
Hello,

i am developing a RAP application and at one point, it should be possible to upload excel files to the server and they should be processed on the server. I really like the new FileDialog compared to the old one because it is easier for the user to upload multiple files.

However i can not find a possibilty to only allow extension .xls

Is this possible either the new or old FileDialog?

What are the reommedations?

Thanks in advance
Tobias
Re: RAP 2.2M2 FileUpload: Filter specific extension [message #1168838 is a reply to message #1168688] Sun, 03 November 2013 11:04 Go to previous message
Ivan Furnadjiev is currently offline Ivan Furnadjiev
Messages: 1691
Registered: July 2009
Senior Member
Hi Tobias,
the filtering API was removed from the new FileDialog implementation due
to missing native support (filtering by extension) in most of the
browsers. The old filtering implementation was confused for most of the
users. Changing text field background color to yellow after the file is
uploaded was not so convenient. If more browsers support native
filtering by extension in the future we will bring the FileDialog API back.
Best,
Ivan

On 11/3/2013 3:44 PM, Tobias P. wrote:
> Hello,
>
> i am developing a RAP application and at one point, it should be
> possible to upload excel files to the server and they should be
> processed on the server. I really like the new FileDialog compared to
> the old one because it is easier for the user to upload multiple files.
>
> However i can not find a possibilty to only allow extension .xls
>
> Is this possible either the new or old FileDialog?
>
> What are the reommedations?
>
> Thanks in advance
> Tobias

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:resourcemanager resource order
Next Topic:Drawing with GC on shell
Goto Forum:
  


Current Time: Fri Apr 18 04:08:32 EDT 2014

Powered by FUDForum. Page generated in 0.12277 seconds