Check file extension and alert user if isn't image file
问题 I need help to add some line of code to check is file is image, to check extension. This is my code that I use for indicate progress of uploading images. I do that in php and user can't upload any file except .jpg .jpeg .gif and .png but he doesn't get a message that file isn't uploaded. When I add javascript code for progress upload, my php message taht i create doesn't display anymore. This is my javascript upload.js file code: var handleUpload = function(event) { event.preventDefault();