getgrav / getgrav/grav-plugin-admin
Image path not saved
- Dominant language
- PHP
- Stars
- 377
- Forks
- 225
- Avg merge
- 11h 51m
- Merged PRs (30d)
- 4
Description
When uploading images to a Page, the path is no longer saved. The image is uploaded into the page directory but the reference to that directory is not saved.
For example it now saves this :
```
photo:
IMG_4141.JPG:
name: IMG_4141.JPG
type: image/jpeg
size: 474122
path: IMG_4141.JPG
```
Instead of this :
```
photo:
user/pages/03.penser-le-paysage/IMG_4141.JPG:
name: IMG_4141.JPG
type: image/jpeg
size: 474122
path: user/pages/03.penser-le-paysage/IMG_4141.JPG
```
This issue arrived after updating from v1.5 to v1.7 and with the most recent Admin Plugin v1.10.6.
Thanks
Contributor guide
Research direction
Start by reproducing an image upload to a Page in the Grav Admin Plugin using the versions described, then trace where the uploaded image metadata is saved. Done means the saved image key and path include the page directory, matching the expected example rather than only the filename.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend, content
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100