Modified file upload module