[wp-trac] [WordPress Trac] #30384: Cannot hook plupload's JavaScript consistently

WordPress Trac noreply at wordpress.org
Tue Nov 18 16:03:57 UTC 2014


#30384: Cannot hook plupload's JavaScript consistently
-------------------------+-----------------------------
 Reporter:  tomdxw       |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Upload       |    Version:  4.0
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 Visit /wp-admin/media-new.php and enter the following into the console:

     window.uploader.bind('FileUploaded', function (){alert(1)})

 Upload a file and once that's complete your function will be executed.

 However if you visit /wp-admin/upload.php or /wp-admin/post-new.php and
 run that JavaScript you'll find that window.uploader is undefined.

 I'm trying to prompt users to add additional information about the images
 they upload, but without access to the Uploader object that appears to be
 impossible.

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


More information about the wp-trac mailing list