update check filetype before upload