check file structure of uploaded files