We recently upgraded from 5.2.8 to 5.4.0.1 and there appears to be an issue with the JavaScript API function setContentOfEditableFileAsset()
. I run the function below but an error is returned:
Function:
FOO.api.setContentOfEditableFileAsset({
'asset_id': 123456,
'content': 'The content here',
'dataCallback': function(data) {
console.log(data);
}
});
Returned error:
error: "The setContentOfEditableFileAsset function must be activated"
errorCode: "badRequest"
- I have locks on the asset
- “Set File Content” is set to Yes in the API asset Details screen in the Matrix admin interface. I’ve tried changing to No, saving, then back to Yes but to no avail
-
setContentOfEditableFileAsset()
is available to call in JavaScript; it looks like the issue is with running the related functionality on the server
Can anyone suggest what might be causing the problem?
Cheers in advance.
Jamie