check that sended file string or file instance