User tests: Successful: Unsuccessful:
If you are in the plugin TinyeMCE
settings, select a subdirectory for saving images. Then when you drag the image into the article editor, the image will not be saved to the selected user subdirectory, but will be saved as before to the parent /images
directory.
But now the images will be saved to the selected user under the directory in the /images
directory.
Before POST/GET request
option: com_media
format: json
url: 1
task: api.files
path: local-images:
content: "imageData"
name: "____Image.jpg"
parent: "publicacations_2023"
After Fix POST/GET request
option: com_media
format: json
url: 1
task: api.files
path: local-images:publications_2023
content: "imageData"
name: "____Image.jpg"
parent: "publicacations_2023"
The problem of saving the image to a subdirectory was in the absence of the name of the subdirectory in the path:
parameter.
Because it is in the component that the images are saved to the subdirectory that is specified in the path:
parameter of the POST request.
administrator/components/com_media/src/Controller/ApiController.php
In method ApiController->getPath()
Can you tell me if this PR needed to be added to [4.3-dev]?
Category | ⇒ | JavaScript Repository NPM Change |
Status | New | ⇒ | Pending |
Labels |
Added:
NPM Resource Changed
?
|
Title |
|
Title |
|
There are two different issues here
Please seperate this into seperate pull requests. The bug fix is absolutely needed. I am not sure about the new feature
As this PR here fixes a bug, it is ok for 4.2-dev as it is.
Please seperate this into seperate pull requests. The bug fix is absolutely needed. I am not sure about the new feature
I divided it.
I have tested this item
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Labels |
Added:
?
|
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-03-06 22:05:22 |
Closed_By | ⇒ | roland-d |
Thank you
Please close #39946 if this PR is for it.