From 327d9791ba6047f1a662b71150f9232fb9d43dc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Grabowski?= Date: Thu, 2 Jun 2022 15:08:58 +0200 Subject: [PATCH] IBX-2948: Media File Upload: Cannot upload same file twice in a row with button upload --- .../components/drop-area/drop.area.component.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bundle/ui-dev/src/modules/multi-file-upload/components/drop-area/drop.area.component.js b/src/bundle/ui-dev/src/modules/multi-file-upload/components/drop-area/drop.area.component.js index 0dab307e49..6f66061435 100644 --- a/src/bundle/ui-dev/src/modules/multi-file-upload/components/drop-area/drop.area.component.js +++ b/src/bundle/ui-dev/src/modules/multi-file-upload/components/drop-area/drop.area.component.js @@ -37,6 +37,8 @@ export default class DropAreaComponent extends Component { handleUpload(event) { this.props.preventDefaultAction(event); this.props.onDrop(this.props.processUploadedFiles(event)); + + event.currentTarget.value = null; } componentDidMount() {