[wp-trac] [WordPress Trac] #24603: Introduce pre_move_uploaded_file filter to allow pre-processing of uploaded files
WordPress Trac
noreply at wordpress.org
Wed Aug 16 21:58:14 UTC 2017
#24603: Introduce pre_move_uploaded_file filter to allow pre-processing of uploaded
files
-------------------------+---------------------------
Reporter: ryan | Owner: DrewAPicture
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.9
Component: Upload | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
-------------------------+---------------------------
Changes (by DrewAPicture):
* owner: => DrewAPicture
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"41258"]:
{{{
#!CommitTicketReference repository="" revision="41258"
Filesystem: Introduce the `pre_move_uploaded_file` filter.
Passing a non-null value to the filter will prevent the uploaded file from
being moved to the uploads directory for any of the functions leveraging
`_wp_handle_upload()`, such as `wp_handle_upload()` or
`wp_handle_sideload()`.
Error reporting related to the file being moved will also be skipped.
Props ryan, Mte90.
Fixes #24603.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/24603#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list