[wp-trac] [WordPress Trac] #32459: Send custom metadata alongside a file upload via the media uploader (was: Add a filter for overriding image sizes before uploading)

WordPress Trac noreply at wordpress.org
Fri May 22 17:35:38 UTC 2015


#32459: Send custom metadata alongside a file upload via the media uploader
-------------------------+------------------------------
 Reporter:  danphilibin  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Media        |     Version:  4.2.2
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  administration
-------------------------+------------------------------

Comment (by danphilibin):

 Thanks @rittesh.patel. `intermediate_image_sizes_advanced` does indeed do
 part of what I'm looking for—modifying the default set of sizes.

 However, I can't find a way to only apply that filter in certain
 circumstances when the upload is initiated. Is there a way to send
 additional data with a file when it's uploaded?

 `wp_handle_upload_prefilter` seems like a good place to examine an upload
 and determine whether to modify the sizes array, but I can't find a way to
 send custom data and have it show up in that filter.

 I suppose a better summary of this request is gaining the ability to send
 custom metadata alongside a file upload.

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


More information about the wp-trac mailing list