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

WordPress Trac noreply at wordpress.org
Thu Jan 19 17:00:53 UTC 2017


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

Comment (by LewisCowles):

 Replying to [comment:12 freakpants]:
 > No, sorry, it should work fine on PHP > 5.3. The patch @diddledan
 created doesn't work. He forgot to consider the applicaion/octet-stream
 return.
 >
 > My patch works, but might not work on systems that dont have a magic
 file (?).
 >

 pretty sure one great reason not to use `application/octet-stream` is that
 it's generic so then handling SVG upload types becomes problematic down
 the line for other plugins.

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


More information about the wp-trac mailing list