file upload (restrict the upload file types to PDF only) using cq xtypes/widgets
Hello All,
I need to write a component that does **file upload (restrict the upload file types to PDF only).**
I have seen CQ has its own dialogs to upload files, but I am not sure, whether I could resuse them.
Please let me know, if I could use out of the box xtypes "smartfile",
"fileuploadfield", "html5fileuploadfield", or "uploaddialogbutton"
with restriction to PDF files.
OR Do I need to write custom component extending one of the xtypes?
I appreciate all the help.
Thank you,
Sri