Validate file extension

on load files in a folder containing: js and css, all files were returned to the same mime type