illegal file type "",
only .jpg .gif .png, .vim and .txt are allowed