[wp-trac] [WordPress Trac] #48710: PDF uploads are treated like images: empty alt attribute and PHP notices
WordPress Trac
noreply at wordpress.org
Fri Sep 29 15:33:27 UTC 2023
#48710: PDF uploads are treated like images: empty alt attribute and PHP notices
--------------------------+----------------------------
Reporter: worddean | Owner: joedolson
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 6.4
Component: Media | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: accessibility
--------------------------+----------------------------
Comment (by joedolson):
The root cause here is that the uploader isn't getting an accept attribute
that matches the current collection filters, so you can upload file types
that aren't a match for what you can use in a given context.
The situation where a PDF is treated like an image is only caused because
it's possible to do this; if we properly prevent uploads in these
inappropriate places, then we don't have this issue.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48710#comment:40>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list