Opened 6 years ago
Closed 3 months ago
#40323 closed defect (bug) (fixed)
wp-admin/async-upload.php returns "text/html" at Content-Type
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 5.3 | Priority: | normal |
Severity: | normal | Version: | 4.7.3 |
Component: | Upload | Keywords: | close 2nd-opinion |
Focuses: | administration | Cc: |
Description
When uploading image via wp-admin/async-upload.php, response-header includes "text/html" at Content-Type.
I'm creating a module only for html.
So I want to detect the response is html or not.
But this response returns text/html at header, so I cannot detect correctly.
To handle properly, I want response-header to use "application/json" or something.
Change History (3)
Note: See
TracTickets for help on using
tickets.
If I recall correctly,
wp-admin/async-upload.php
is forced to returntext/html
due to browser incompatibilities.Upon digging, it affects IE9 and lower - [31429].
I don't think we should be changing this header quite yet, maybe in another year or so we might be in a place where we can.