Provides upload services to upload any BLOB into metaweb via HTML forms.
The service also creates and executes a MQL query to register the content object in the graph and associate it with an existing document or newly created document as the case may be.
More
Provides upload services to upload any BLOB into metaweb via HTML forms.
- If the
document argument is not provided a new one is created
- If
content_type argument is not provided, the service looks for the HTTP Content-Type header to get the information
- If the
content_type argument and the HTTP Content-Type header are both provided the form argument takes precedence
- If
text_encoding is not provided and either the content_type form argument or the HTTP Content-Type header is provided with the charset, that value is used for text_encoding.
- If
text_encoding form argument is provided it overrides every other source for the information.
The service also creates and executes a MQL query to register the content object in the graph and associate it with an existing document or newly created document as the case may be.
Sample response
{
"status": "200 OK",
"code": "/api/status/ok",
"result": {
"length": 975,
"blob_id": "a1b9ebd70edb595535b83aa428bca9e5f744e94f9039b41d89d13840c6402119",
"language": "/lang/en",
"media_type": "text/plain",
"text_encoding": "utf-8",
"type": "/type/content",
"id": "#4401a8c040004d8a80000000000491b4"
}
}
Less