File upload
IDM supports a generic file upload service at the file
endpoint. Files are uploaded either to the filesystem or to the repository. For information about configuring this service, and for command-line examples, refer to Upload files to the server.
IDM provides REST access to the file upload service, as listed in the following table:
URI | HTTP Operation | Description |
---|---|---|
/openidm/file/handler/ |
PUT |
Uploads a file to the specified file handler. The file handler is either the repository or the filesystem and the context path is configured in the |
/openidm/file/handler/filename |
GET |
Returns the file content in a base 64-encoded string within the returned JSON object. |
/openidm/file/handler/filename?_fields=content&_mimeType=mimeType |
GET |
Returns the file content with the specified MIME type. |
/openidm/file/handler/filenamemimeType |
DELETE |
Deletes an uploaded file. |