Fixied file check before upload