How to reset widget when upload is complete?

To remove a file from the widget, after you’ve finished uploading, call the widget’s value() method with null:


Also, users can clear the widget manually. To enable the reset button, enable the clearable option in widget settings. For more information, see Clearable.