Limit the possibility of uploading files based on the extension
I'm working on a file upload form. The files that are valid in this case can be of different types: .doc, .docx, .jpg, .jpeg, .pdf, .xls, .xlsx, .zip and .rar.
I have programmed the form with the help of WA (File Manipulation) and, also, I have managed to get the entered data (name of the file, user, etc) registered in the database.
However I do not see in helperphp.php the possibility of limiting the file types to those that I need. That is: .doc, .docx, .jpg, .jpeg, .pdf, .xls, .xlsx, .zip and .rar.
Can you help me?