Opened 11 years ago
Last modified 9 years ago
#32048 new defect (bug)
Uploaded file reserves a name, page can't be named it.
| Reported by: | programmin | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Permalinks | Version: | 4.1.1 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
1) Upload a file-name.png file to media library.
2) Publish a page named "file-name".
3) Note that (if site is set to post-name permalink) the page is now file-name-2
4) Try to rename the attachment and then give the page the natural name, and it still doesn't work.
This might have a similar root cause as bug #13459.
Change History (5)
#2
in reply to: ↑ 1
@
11 years ago
Replying to SergeyBiryukov:
Deleting the attachment and re-uploading it under a different name should work.
So there is no way to prefer that page to have the first name slug, or disable this rarely used example.com/imagename access to media files?
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
It's done to avoid a conflict like #15665 or #24612. I don't see an easy solution here, any suggestions?
Deleting the attachment and re-uploading it under a different name should work.