Even I’ve similar requirement to restrict the type of files uploaded including the size. If it doesn’t match then an error message pops-up.
Please let me know if you’ve already figured this out. Thank you.