issue fixed : file's type correctly checked