Hi,
How do I delete the contents of a UploadItem once I uploaded the file? I tried
form.setValue('file', '')
but I am not working.
Thank you!
Hi,
How do I delete the contents of a UploadItem once I uploaded the file? I tried
form.setValue('file', '')
but I am not working.
Thank you!
You can’t change the value of an UploadItem, because it would be a security hole.
But you can redraw() the form as a means of clearing (essentially, this creates a new one).