mixed $move_new_file, array $file, string $new_file, string $type )
Filters whether to short-circuit moving the uploaded file after passing all checks.
If a non-null value is returned from the filter, moving the file and any related error reporting will be completely skipped.
If null (default) move the file after the upload.
Reference to a single element from
namestringThe original name of the file on the client machine.
typestringThe mime type of the file, if the browser provided this information.
tmp_namestringThe temporary filename of the file in which the uploaded file was stored on the server.
sizeintThe size, in bytes, of the uploaded file.
errorintThe error code associated with this file upload.
Filename of the newly-uploaded file.
Mime type of the newly-uploaded file.
View all references
$move_new_file = apply_filters( 'pre_move_uploaded_file', null, $file, $new_file, $type );