Upload/Download (category)
media_handle_sideload() | Handles a side-loaded file in the same way as an uploaded file is handled by media_handle_upload(). |
media_handle_upload() | Save a file submitted from a POST request and create an attachment post for it. |
media_sideload_image() | Downloads an image from the specified URL and attaches it to a post. |
wp_check_filetype() | Retrieve the file type from the file name. |
wp_check_filetype_and_ext() | Attempts to determine the real file type of a file. |
wp_get_upload_dir() | Retrieves uploads directory information. |
wp_handle_sideload() | Wrapper for _wp_handle_upload(). |
wp_handle_upload() | Wrapper for _wp_handle_upload(). |
wp_unique_filename() | Get a filename that is sanitized and unique for the given directory. |
wp_upload_bits() | Create a file in the upload folder with given content. |
wp_upload_dir() | Get an array containing the current upload directory's path and url. |