array $file )
Filters the data for a file before it is uploaded to WordPress.
The dynamic portion of the hook name,
$action, refers to the post action.
Possible hook names include:
(array) Reference to a single element from
(string) The original name of the file on the client machine.
(string) The mime type of the file, if the browser provided this information.
(string) The temporary filename of the file in which the uploaded file was stored on the server.
(int) The size, in bytes, of the uploaded file.
(int) The error code associated with this file upload.
|4.0.0||Converted to a dynamic hook with