media_handle_sideload()
Handles a side-loaded file in the same way as an uploaded file is handled by media_handle_upload().
Welcome to the WPPaste WordPress Function index. This page contains a an alphabetically sorted list of functions that are available for use in WordPress. Each function has a brief description of what it does and how it can be used. To find out more about a particular function, simply click on the function name.
Handles a side-loaded file in the same way as an uploaded file is handled by media_handle_upload().
Saves a file submitted from a POST request and create an attachment post for it.
Retrieves the post non-image attachment fields to edit form fields.
Adds image HTML to editor.
Downloads an image from the specified URL, saves it as an attachment, and optionally attaches it to a post.
Retrieves the single non-image attachment fields to edit form fields.
Handles uploading an audio file.
Handles uploading a generic file.
Displays the multi-file uploader message.
Outputs the legacy media upload form.