Hi team,
Requirement is when we click the upload Icon the explorer is opened , In the explorer it self we need to show only PDF files only specific format files we need to show,
How we can achieve this any one can support
Current View in Upload Explorer
Requirement
Only specific format , Excel or PDF or Word
Hi Murugan,
This can be achieved by specifying "accept" property of file upload widget.
You can specify multiple file formats in comma separated string.
But, here is a catch. It will initially filter the files based on the "accept" property but user can still select other file types.
So, you can use this property to initially filter the file types to be uploaded but for concrete solution you must check the file type on client side as well as server side.
Hi Zafer,
I have done this but the dropdown should not show all files thats the challenge .
Thanks
Murugan S S
You can validate the file type while selecting, uploading(in client action) and in server action only. You can not control browser's behavior from your code. The above behavior is provided by browsers and is for user's convenience only.