added file upload and name changing for files