[wp-trac] [WordPress Trac] #38231: Allow download_url to respect content-disposition header

WordPress Trac noreply at wordpress.org
Thu Oct 14 16:33:09 UTC 2021


#38231: Allow download_url to respect content-disposition header
--------------------------------------+------------------------------
 Reporter:  cklosows                  |       Owner:  johnjamesjacoby
     Type:  enhancement               |      Status:  assigned
 Priority:  normal                    |   Milestone:  5.9
Component:  HTTP API                  |     Version:  4.7
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------------------

Comment (by ocean90):

 Are you aware of
 `WP_REST_Attachments_Controller::get_filename_from_disposition()`
 ([https://developer.wordpress.org/reference/classes/wp_rest_attachments_controller/get_filename_from_disposition/
 Reference])?

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


More information about the wp-trac mailing list