[wp-trac] [WordPress Trac] #22740: 3.5 Media: "From URL" doesn't provide any feedback on error

WordPress Trac noreply at wordpress.org
Tue Dec 4 20:49:58 UTC 2012


#22740: 3.5 Media: "From URL" doesn't provide any feedback on error
--------------------------+------------------------------
 Reporter:  Viper007Bond  |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |
--------------------------+------------------------------

Comment (by nacin):

 Good point.

 I am trying to think of the easiest way to fix this. If it's not a 200, we
 can show "File not found." Otherwise, it isn't an image, we can maybe
 reveal the discovered mime type (or do nothing).

 The way we detect images is with `new Image` in JS. I am assuming that
 won't allow us to do an HTTP status code check.

 We can resort to the older, less intelligent UI, which asked "Image"
 versus "Audio, Video, or Other File" to avoid this kind of ambiguity from
 being clever but not clever enough.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22740#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list