add type to file upload