Issue
After uploading files using the File Uploader widget, the files cannot be deleted when strict mode is enabled in the application. When attempting to remove a file by clicking the X button in the file uploader, an error appears in the console indicating that the object cannot be removed:
Could not remove object:
mx.data.remove is disabled Error: mx.data.remove is disabledThe delete functionality works correctly when strict mode is disabled in Security settings.
Environment
File Uploader (all versions)
Cause
The File Uploader is a platform-supported widget that is not compatible with strict mode. When using strict mode, certain client APIs are restricted, which prevents the default delete button from functioning. The widget relies on client APIs that are not available in strict mode.
Solution/Workaround
To enable file deletion in the File Uploader widget while using strict mode, use custom buttons that call a nanoflow or microflow:
- Navigate to Properties > Advanced tab > Custom Buttons in the File Uploader widget and set the value to Yes.
- Configure a custom delete button that calls a nanoflow or microflow to handle the file deletion.
A pluggable widget implementation compatible with strict mode is planned for release at the earliest in Studio Pro v11.12. Additionally, a widget scanner will be included in Studio Pro v11.24 that checks for strict mode compatibility of all widgets inside the project before making strict mode the default.
Internal information related
- 259876, 277794
- CJZ85RLTA/p1758034987266549
0 Comments