Upload::upload_file( array $file )
Description #
Upload a file.
Parameters #
- $filearray (Required) File array.
Source #
File: lib/form/class-upload.php
private function upload_file( $file ) { $id = $this->upload( $file ); if ( is_wp_error( $id ) ) { $this->add_error( $id->get_error_code(), $id->get_error_message() ); } else { $this->uploaded_files[ sanitize_file_name( $file['name'] ) ] = $id; } }
Expand full source code Collapse full source code View on GitHub: lib/form/class-upload.php:314
Add your comment