dimasites / modx-ckeditor

CKEditor integration into MODx Revolution
3 stars 1 forks source link

Change image upload pathway #1

Open jwmsales opened 2 years ago

jwmsales commented 2 years ago

How do I change the image upload pathway? Currently, the Editor is uploading into the root folder.

dimasites commented 5 months ago

Hi! And sorry for long answer(

I use default MODX file source ( via system setting ) targeted not to the root of website. Just add media source (via URL [yousite.com]/manager/?a=source ) with settings like this: name = Uploads basePath= assets/uploads/ baseUrl = /assets/uploads/ (other params by default or as you wish)

And setup ++default_media_source system setting or context setting to the new filesource!