Closed imran-hossain03 closed 9 months ago
Could you please elaborate what do you mean by upload provider?
It doesn't give the full URL of the images, it just provides a relative path to the upload folder just like '/upload/*'. But the unofficial plugin works fine in this regard.
Hi @imran-hossain03! By default, Strapi Media Library API returns a relative path in the file's url
property, however, we are using prefixFileUrlWithBackendUrl
helper introduced by Strapi for creating the absolute path (see the code here).
The helper relies on window.strapi.backendURL
, so make sure that you have it configured properly.
you can use this Strapi plugin to prepend the public url or media prefix in general.
it converts your url from /upload/*
to https://your-media-link.com/upload/*
it works well and it will fix your problem
https://www.npmjs.com/package/strapi-plugin-media-prefix
Currently the media url returns and server upload url just like '/upload/*'.
Is there any plan to support upload provider?