Dear Colleagues,
I am using file upload components to upload pdf files... Is there anyway to make the choose file windows display only PDF files?
Your kind advice please,
Thanks
File Upload
Moderator: General Moderators
Re: File Upload
If you are using <input type="file" /> then no. There is attribute 'accept' but unfortunately it's not supported by most browser.
If you are using flash uploader, then most likely you can, but for that you need to check its documentation.
If you are using flash uploader, then most likely you can, but for that you need to check its documentation.
Re: File Upload
Are you sure this feature is not supported by most browsers?
Re: File Upload
It's not supported by FF, so I assume chart is correct. If you know something we might not know, please share.
Re: File Upload
To my min, it's impossible because the choose file window is displayed by your operating system, not the browser.
Re: File Upload
accept is not supported as it has been said. Only Opera supports accept partially.
You better use javascript and server-side code to check the file extension/mime-type, more secure that way too.
You better use javascript and server-side code to check the file extension/mime-type, more secure that way too.