Single file upload doesn't update if picking the same file again #1214
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
If using ng2FileSelect but only uploading a single file (i.e.
multipleattribute on the input element). If you pick a file, edit it and pick it again then the file is still referring to the old version. This then causes the upload to fail.This is because the input does not fire it's
changeevent because it is still the same file. It seems this was handled but only when themultipleattribute is present.My solution has been to add
(onFileSelected)="upload.value = ''"to the input element.