Im working on a file upload in an ASP.net webpage with angular and wanted to ask how to check if the uploaded file is a pdf or jpg and has max 2MB. If this isn't the case there should be a sipmle text which is shown and the file should not be uploaded / listed on the file list. Can i do this in Frontend / Ts? Continue reading...