Documentation Center

upload_resource

Accepts a binary resource and uploads it into a skin.

Parameters

action
upload_resource
resskin
The skin into which to upload content.
restype
The type of the resources to upload (such as img or xql).

Example URL

http://<host>:<port>/<context>/web/dev.xql?action=upload_resource&resskin=<value>&restype=<value>

Successful Result

Returns a JSON representation of the standard API result element.

Failed Result

Accessing this API feature requires the "Develop app" permission, and the function will throw a permission exception if the permission is not available.