upload and rename files according to predefined schema