ckeditor / strapi-plugin-ckeditor

CKEditor 5 - Official Integration for Strapi
https://market.strapi.io/plugins/@ckeditor-strapi-plugin-ckeditor
Other
72 stars 79 forks source link

Does the plugin supports media upload provider #82

Closed imran-hossain03 closed 9 months ago

imran-hossain03 commented 1 year ago

Currently the media url returns and server upload url just like '/upload/*'.

Is there any plan to support upload provider?

Witoso commented 1 year ago

Could you please elaborate what do you mean by upload provider?

imran-hossain03 commented 1 year ago

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.

Mgsy commented 11 months ago

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.

kirwako commented 7 months ago

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