media_upload_file

Handles uploading a generic file.

Description

(null|string) media_upload_file(); 

Returns (null|string)


Usage

  1. if ( !function_exists( 'media_upload_file' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/deprecated.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = media_upload_file(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/deprecated.php  
  1. function media_upload_file() { 
  2. _deprecated_function( __FUNCTION__, '3.3.0', 'wp_media_upload_handler()' );