Opened 12 years ago
Last modified 7 years ago
#30384 new enhancement
Cannot hook plupload's JavaScript consistently
| Reported by: | tomdxw | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Upload | Version: | 4.0 |
| Severity: | normal | Keywords: | needs-patch |
| Cc: | Focuses: |
Description
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.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)