System Information
- Strapi Version: 4.25.4
- Operating System: Windows
- Database: Mysql2
- Node Version: 20.16.0
- NPM Version: 10.8.1
- Yarn Version:
We are unable to upload SVG files to the Media Library. But JPG uploads are fine. I used strapi-provider-upload-azure-storage to store the media files. Our Project is deployed on the Windows server. I attached a screenshot.
strapi-provider-upload-azure-storage plugin code:
module.exports = ({ env }) => ({
upload: {
config: {
provider: "strapi-provider-upload-azure-storage",
providerOptions: {
authType: env("STORAGE_AUTH_TYPE", "default"),
account: env("STORAGE_ACCOUNT"),
accountKey: env("STORAGE_ACCOUNT_KEY"),
sasToken: env("STORAGE_ACCOUNT_SAS_TOKEN"),
serviceBaseURL: env("STORAGE_URL"), // optional
containerName: env("STORAGE_CONTAINER_NAME"),
defaultPath: "assets",
cdnBaseURL: env("STORAGE_CDN_URL"), // optional
defaultCacheControl: env("STORAGE_CACHE_CONTROL"), // optional
removeCN: env("REMOVE_CONTAINER_NAME"), // optional
},
},
},
});
Error Screenshot: