[wp-trac] [WordPress Trac] #31050: Better PDF Upload Management
WordPress Trac
noreply at wordpress.org
Fri Feb 19 00:31:04 UTC 2016
#31050: Better PDF Upload Management
-------------------------------------------------+-------------------------
Reporter: celloexpressions | Owner:
Type: feature request | markoheijnen
Priority: normal | Status: assigned
Component: Media | Milestone: 4.5
Severity: normal | Version:
Keywords: has-patch dev-feedback needs-unit- | Resolution:
tests needs-testing | Focuses: ui
-------------------------------------------------+-------------------------
Comment (by markoheijnen):
I could look into it. Reason why I did it this way was the easy
integration in the existing code. To me the `sizes` part already is
something separate and not linked to only to images.
About the full image we could probably move that one to `sizes` too.
Reason why I set $metadata['file'] was that it's used to get the relative
path. However we could also use the meta key `_wp_attached_file` for that.
So I'm looking if that could be used to only add the PDF data to `sizes`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31050#comment:34>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list