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:
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?
Can I ask whether anyone is currently on 5.4.0.1 and using setContentOfEditableFileAsset() successfully? I’m trying to determine whether the problem is caused by a bug or something else.
One key piece of functionality on our site depends on setting the contents of a file so I’m keen to get to the bottom of the issue.