save file extension and success check