on 02-20-2009 11:36 AM
Hi All,
My requirement is to choose a file of a specifc type only say xml . Only xml files should be visible others should not be visible.
I searched in forums but i didnot get apt solution.
Please anyone help me to solve this problem.
Regards,
Jude.
Hi,
I dont think their is any property to restrict the file upload to show only .xml files using webdynpro FileUpload UI element.
What you can do is at the server side once the upload is done, based on the mime-types you can respond back to the user that only .xml files are supported for uploads.
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try this solution
IPrivateUserDataView.IUploadFileInformationElement element = wdContext.currentUploadFileInformationElement();
if (element.getFileResource() != null)
{
IWDResource resource = element.getFileResource();
if (resource.getResourceType().getFileExtension().equals("xls"))
//Put your condition here
{
//allowed operations
}
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.