getgrav / getgrav/grav-plugin-admin
Avoid overwriting files in page media upload
- Dominant language
- PHP
- Stars
- 377
- Forks
- 225
- Avg merge
- 11h 51m
- Merged PRs (30d)
- 4
Description
Hi,
can we make the media upload field to prevent image overwriting, while uploading a file with already present name? I know that it's possible to add own file upload field and set `avoid_overwriting` to `true`, but why it's not by default on page media? Is there any reason why to not do that? I think that would be way more user friendly than overwriting already uploaded files.
Contributor guide
Research direction
Start by tracing the page media upload entry point and compare it with the existing `avoid_overwriting` option for custom upload fields. Confirm the desired behavior for an upload whose filename already exists, then verify that existing files are preserved and new uploads receive distinct names.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- content
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100