media_handle_upload Wordpress function


Description:

This handles the file upload POST itself, creating the attachment post.


Syntax:


Arguments:

(string) $file_id Index into the {@link $_FILES} array of the upload
(int) $post_id The post ID the media is associated with
(array) $post_data allows you to overwrite some of the attachment
(array) $overrides allows you to override the {@link wp_handle_upload()} behavior


Return Type:

(int) the ID of the attachment


Define At:

wp-admin/includes/media.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/media_handle_upload


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×