[wp-trac] [WordPress Trac] #63015: Handle more content-disposition format on dowload_url

WordPress Trac noreply at wordpress.org
Tue Feb 25 14:48:39 UTC 2025


#63015: Handle more content-disposition format on dowload_url
-------------------------+-----------------------------
 Reporter:  Rahe         |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 Hello,

 In changeset 51939 content-disposition "attachment; filename=" have been
 supported for download_url function

 We could handle the content-disposition "inline; filename=" too that
 instead of forcing the browser to download the image just to displaying
 it.

 Some systems like imgProxy (imgproxy.net) are returning this kind of
 header when serving the same asset but with another filetype as the
 original one (avif instead of jpg).

 Nicolas,

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63015>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list