Filters the data array for the uploaded file.
Parameters
$uploadarray- Array of upload data.
filestringFilename of the newly-uploaded file.urlstringURL of the newly-uploaded file.typestringMime type of the newly-uploaded file.
$contextstring- The type of upload action. Values include
'upload'or'sideload'.
Source
return apply_filters(
'wp_handle_upload',
array(
'file' => $new_file,
'url' => $url,
'type' => $type,
),
'wp_handle_sideload' === $action ? 'sideload' : 'upload'
);
Changelog
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.