check file extension while loading image in app file upload