[wp-trac] [WordPress Trac] #48710: Media uploader does not restrict file upload `accepts` parameters based on current context (was: PDF uploads are treated like images: empty alt attribute and PHP notices)

WordPress Trac noreply at wordpress.org
Tue Aug 6 15:24:58 UTC 2024


#48710: Media uploader does not restrict file upload `accepts` parameters based on
current context
-------------------------------------+----------------------------
 Reporter:  worddean                 |       Owner:  joedolson
     Type:  defect (bug)             |      Status:  accepted
 Priority:  normal                   |   Milestone:  6.7
Component:  Media                    |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  needs-patch 2nd-opinion  |     Focuses:  accessibility
-------------------------------------+----------------------------
Description changed by joedolson:

Old description:

> uploading a .pdf image in posts reads the following;
> "this image has an empty alt attribute: its file name is.... .pdf"
>
> I am a regular user since 1.5 versions of WP and this is my first bug, or
> error report.  I tried downgrading, but it kept coming back error.

New description:

 Previously titled "PDF uploads are treated like images: empty alt
 attribute and PHP notices". Changed to reflect the actual issue that needs
 to be solved in order to fix this.

 uploading a .pdf image in posts reads the following;
 "this image has an empty alt attribute: its file name is.... .pdf"

 I am a regular user since 1.5 versions of WP and this is my first bug, or
 error report.  I tried downgrading, but it kept coming back error.

--

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48710#comment:53>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list