Guards against incorrect file upload