Can I reset uploader when upload is complete?

To remove a file from the uploader, you need to call its value() method with null

// get uploader's reference
const uploader = uploadcare.Widget("[role=uploadcare-uploader]");
// when upload is complete, reset uploader
uploader.onUploadComplete(function() {
  uploader.value(null);
});

Also, users will be able to reset the uploader manually if you turn on the clearable option

UPLOADCARE_CLEARABLE = true;

It will add a remove button to the uploader's UI

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us