add file type and upload file rescue to put file