Opened 10 years ago
Last modified 8 years ago
#32048 new defect (bug)
Uploaded file reserves a name, page can't be named it.
Reported by: | programmin | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 4.1.1 |
Component: | Permalinks | Keywords: | |
Focuses: | Cc: |
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
@
10 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?
This ticket was mentioned in Slack in #core by jorbin. View the logs.
9 years ago
Note: See
TracTickets for help on using
tickets.
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.