cancel
Showing results for 
Search instead for 
Did you mean: 

How to add file type fiter in FileUpload component in Java Web Dynpro

Former Member
0 Kudos

Hi All,

In FileUpload UI, i want to set file type filter, for example as *.PDF, *.JPG, is that possibel in Java WebDynpro?

Thanks a lot!

Huang Jia

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi All, very userful comments, thanks!

Former Member
0 Kudos

Hi,

You cant put this filter condition at client side.

Regards

Ayyapparaj

Former Member
0 Kudos

hi!

you can achieve this filter thing of file type by just taking some strings for diffrent types as extension and assign those to the resource type .

eg.

String extension = ".doc";

WDWebResourceType.getWebResourceTypeForFileExtension(extension));

Former Member
0 Kudos

Hi,

I think you can check that condition by using

if(resource.getResourceType().getFileExtension()==<<with your condition);

Regards

Raghu