media_handle_upload Wordpress function


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



(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:


Wordpress Reference URL:

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