Opened 9 years ago
Closed 3 years ago
#40323 closed defect (bug) (fixed)
wp-admin/async-upload.php returns "text/html" at Content-Type
| Reported by: | mrasu | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.3 |
| Component: | Upload | Version: | 4.7.3 |
| Severity: | normal | Keywords: | close 2nd-opinion |
| Cc: | Focuses: | administration |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
If I recall correctly,
wp-admin/async-upload.phpis forced to returntext/htmldue 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.