When you upload a file to a blog, the server creates a media resource entry to represent the file. To create a media resource, post the file to the blog using the HTTP POST
The types of files, and the maximum sizes of the files that can be uploaded to a blog is defined by the Blogs administrator. See the Administering Blogs
section of the IBM
® Connections product documentation for more details.
In addition to creating a media resource entry to represent the file, the server also creates an entry called a media link entry that contains information about the file. You can use the media link entry to separately retrieve metadata of the media resource.
See Authenticating requests
for information about how to authenticate the request.
Draft authors are not allowed to post media content to a blog.
Provide a data file in one of the following ways:
- Specify a JPEG file as the POST data. For example:
- Use the HTTP entity-header of Slug to specify the file. (See the Atom Publishing Protocol specification for allowed values of this header.) For example, specify the slug as follows:
You must also specify the content type of the file. For example, if the file has a JPEG extension, specify the content type as follows: