Check file extension befor db insert.