This class MediaUploadByURL  is use to upload image from external image source url,

File need to include:

Following file contain the class, you can include in your theme or plugin or application to use of class.


Example file:

Following file is contain example code of usages of class.


Code sample:

$args = array(
    'file_src_url'      => '', // Optional
    'file_title' 	    => 'Hello Title', // Optional
    'timeout'           => 5, // Second


$MediaUploadByURL = new MediaUploadByURL();

$fileId = $MediaUploadByURL->upload_file($args);


WordPress Option Framework