ADO.NET Provider for WordPress

Build 25.0.9434

CreateMedia

Creates a new media item, such as an image, video, or document, and uploads it to the WordPress.com Media Library for use in posts or pages.

Table Specific Information

Execute

Upload a new piece of media.

Note: To Upload a new piece of media, you must specify the Media column.

EXEC CreateMedia Media='"C:\\Users\\Downloads\\cdata.png"';

Input

Name Type Accepts Input Streams Description
FileLocation String False The path or URL of the file to be uploaded to the WordPress Media Library.
MediaUrls String False The URL or list of URLs for the media items uploaded to WordPress.
Title String False The title assigned to the media item in WordPress.
Description String False The description text for the media item in WordPress.
Caption String False The caption text to display with the media item in WordPress.
ParentId String False The identifier of the post or page the media item is attached to in WordPress.
Content String True The content or descriptive text associated with the media item.
FileName String False The file name assigned to the uploaded media item in WordPress.

Result Set Columns

Name Type Description
Success String Indicates whether the operation was successful or not.
Media String An array of uploaded media objects representing the files added to the WordPress Media Library.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434