|
Re: FileDialog - filter behavior not as expected [message #732277 is a reply to message #732109] |
Tue, 04 October 2011 11:47 |
Rüdiger Herrmann Messages: 335 Registered: July 2009 |
Senior Member |
|
|
Ryan,
as you already assumed, there is no way to tell the client-side file
dialog to filter the files that are displayed.
Regards,
Rüdiger
On 04.10.2011 00:34, Ryan Donnelly wrote:
> Hi,
>
> A question about the incubator FileDialog. I am using it successfully
> out of the box (using the 1.4 update site) with no modifications as
> described here
>
> http://eclipsesource.com/blogs/2011/06/23/uploading-files-with-rap-14/
>
> However, the file extension filter does not behave as expected
> The filter(s) shown in FileDialog are not passed to the browser's file
> selection dialog (I am using Firefox 7.0.1). They are merely used to
> validate the selection afterwards, turning it yellow with a ToolTip
> "Warning: Selected file does not match filter" if it does not pass the
> filter.
>
> However, this is only a warning - if you hit OK, it uploads the file
> anyway. It seems to me it should not allow the upload. Could you please
> comment?
>
> I assume that you didn't pass the filter through to the browser file
> selection dialog for a good reason (not possible to do it across all
> browsers?) Could you please explain?
>
> I didn’t find any open RAP issue for either of my questions here. If
> there is not one and you agree these are valid, I'll open one.
>
>
> Thanks,
>
> Ryan Donnelly
--
Rüdiger Herrmann
Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/
Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
|
|
|
Re: FileDialog - filter behavior not as expected [message #753388 is a reply to message #732277] |
Thu, 27 October 2011 00:50 |
Ryan Donnelly Messages: 35 Registered: July 2009 |
Member |
|
|
Thanks. For anyone on the newsgroup interested, a further discussion
can be found in this issue:
#361001 FileDialog accepts filtered file name extension
https://bugs.eclipse.org/bugs/show_bug.cgi?id=361001
-Ryan
On 04/10/2011 08:47, Rüdiger Herrmann wrote:
> Ryan,
>
> as you already assumed, there is no way to tell the client-side file
> dialog to filter the files that are displayed.
>
> Regards,
> Rüdiger
>
>
> On 04.10.2011 00:34, Ryan Donnelly wrote:
>> Hi,
>>
>> A question about the incubator FileDialog. I am using it successfully
>> out of the box (using the 1.4 update site) with no modifications as
>> described here
>>
>> http://eclipsesource.com/blogs/2011/06/23/uploading-files-with-rap-14/
>>
>> However, the file extension filter does not behave as expected
>> The filter(s) shown in FileDialog are not passed to the browser's file
>> selection dialog (I am using Firefox 7.0.1). They are merely used to
>> validate the selection afterwards, turning it yellow with a ToolTip
>> "Warning: Selected file does not match filter" if it does not pass the
>> filter.
>>
>> However, this is only a warning - if you hit OK, it uploads the file
>> anyway. It seems to me it should not allow the upload. Could you please
>> comment?
>>
>> I assume that you didn't pass the filter through to the browser file
>> selection dialog for a good reason (not possible to do it across all
>> browsers?) Could you please explain?
>>
>> I didn’t find any open RAP issue for either of my questions here. If
>> there is not one and you agree these are valid, I'll open one.
>>
>>
>> Thanks,
>>
>> Ryan Donnelly
>
|
|
|
Powered by
FUDForum. Page generated in 0.01722 seconds