You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If using ng2FileSelect but only uploading a single file (i.e.multiple attribute 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 change event because it is still the same file. It seems this was handled but only when the multiple attribute is present.
My solution has been to add (onFileSelected)="upload.value = ''" to the input element.
The text was updated successfully, but these errors were encountered:
If using ng2FileSelect but only uploading a single file (i.e.
multiple
attribute 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
change
event because it is still the same file. It seems this was handled but only when themultiple
attribute is present.My solution has been to add
(onFileSelected)="upload.value = ''"
to the input element.The text was updated successfully, but these errors were encountered: