thedevdojo / voyager

Voyager - The Missing Laravel Admin
https://voyager.devdojo.com
MIT License
11.78k stars 2.67k forks source link

Unable to change the upload path from bread on "rich text box" #5437

Open kappafix opened 3 years ago

kappafix commented 3 years ago

Laravel version

7.30.4

PHP version

7.3.27

Voyager version

1.x-dev 84e17f6

Database

Mysql 8.0.23

Description

When using the "rich text box" in the bread, if I try to upload an image is not possible to change the storage path: the file is uploaded in the following path: /rootpath/modelName/MonthYear/originalFileName.png In my case I would save in a path like the following:

/rootpath/IMAGES/modelName/originalFileName.png It would be great to use a parameter name like in the bread "media picker":

{ "base_path": "/images/posts/" }

I tryed to use "base_path" also into the "rich text box" parameters but it is not working.

I tryed also to use tinymceOptions:

{

"tinymceOptions": {
    "location": "/images/posts/",
    "images_upload_base_path": "/images/posts/",
    "image_uploadtab": "true",
    "base_path": "/images/posts/"
}

} But it is not working.

Steps to reproduce

Expected behavior

Screenshots

No response

Additional context

No response

kappafix commented 3 years ago

Same problem also using field images