Hello,
By default WP does not support uploading of the SVG. Use the third-party plugin to allow it https://wordpress.org/plugins/svg-support/
Regards