[wp-trac] [WordPress Trac] #13817: Reusing the Media Upload kit in a plugin
WordPress Trac
wp-trac at lists.automattic.com
Fri Jun 11 11:31:57 UTC 2010
#13817: Reusing the Media Upload kit in a plugin
-----------------------------+----------------------------------------------
Reporter: simonwheatley | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Future Release
Component: Media | Version: 3.0
Severity: normal | Keywords: dev-feedback
-----------------------------+----------------------------------------------
Comment(by simonwheatley):
So... can I push the case for a patch with a light touch, which would
enable us to use the media upload kit elsewhere? I've extended my test
code (see amended attached proof of concept plugin) and patched the
current trunk in as few places as possible to get it working... two
proposed new filters to be exact (see attached diff).
The two proposed new filters are:
'''swfupload_post_params''' - This allows you to add to or alter the post
fields which SWFUpload posts to the server along with the file. Guessing
at the future, I'd say this filter would be reusable on the new system
Nacin mentions '''unless''' we don't end up keeping SWFUpload as the file
upload provision.
'''swfupload_success_handler''' - This allows you to filter the name of
the JS function passed to SWFUpload, which it calls on successful upload.
Again, if SWFUpload remains a provision for uploading files then I'd argue
that amending this function name would be necessary in the future system.
How does that sound?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13817#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list