[wp-trac] [WordPress Trac] #39552: SVG upload support broken in 4.7.1

WordPress Trac noreply at wordpress.org
Thu Jan 19 19:15:04 UTC 2017


#39552: SVG upload support broken in 4.7.1
----------------------------------------+-----------------------
 Reporter:  freakpants                  |       Owner:
     Type:  defect (bug)                |      Status:  reopened
 Priority:  normal                      |   Milestone:  4.7.2
Component:  Upload                      |     Version:  trunk
 Severity:  normal                      |  Resolution:
 Keywords:  needs-unit-tests has-patch  |     Focuses:
----------------------------------------+-----------------------

Comment (by freakpants):

 No Lewis, fileinfo is the FALLBACK in my code when the other two
 approaches fail to detect the mimetype. It's true however that application
 /octet-stream is also returned for

 IMAGETYPE_JPC
 IMAGETYPE_JPX
 IMAGETYPE_JB2

 That case should probably be considered as well. Besides that, my solution
 would never oversteer the results by exif_imagetype or getimagesize
 however.

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


More information about the wp-trac mailing list