Details
-
Type: Improvement
-
Status: Closed
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 1.5.1
-
Component/s: ICE-Components
-
Labels:None
-
Environment:Operating System: Windows XP
Platform: PC
-
ICEsoft Forum Reference:
-
Affects:Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial
Description
noted in the forum: http://www.icefaces.org/JForum/posts/list/0/3110.page#14971
We need to allow the developer to define what file types are acceptable to
upload. Currently, it doesn't seem that there's any way to do this through the
actionListener or progressListener as there's no access to the file information
until it's completely uploaded.
We need to allow the developer to define what file types are acceptable to
upload. Currently, it doesn't seem that there's any way to do this through the
actionListener or progressListener as there's no access to the file information
until it's completely uploaded.
Fixed -r 13016
The new fileNamePattern have been added to the inputFile component. Which
allows to define the acceptable type of files to be uploaded using the regular
expression. If file does not conform the defined pattern the component throws
Fileupload exception and the actionEvent being invoked.
The default pattern being set to ".+" to accept any file. The metadata has
been updated with comments.