From 12da6c1426613a93d332e048955a1735fcc1489b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Daubensch=C3=BCtz?= Date: Thu, 25 Jun 2015 14:18:55 +0200 Subject: [PATCH] add todo --- js/components/ascribe_uploader/file_drag_and_drop_preview.js | 3 +++ js/components/ascribe_uploader/react_s3_fine_uploader.js | 1 + 2 files changed, 4 insertions(+) diff --git a/js/components/ascribe_uploader/file_drag_and_drop_preview.js b/js/components/ascribe_uploader/file_drag_and_drop_preview.js index fabcddb0..466ebe0d 100644 --- a/js/components/ascribe_uploader/file_drag_and_drop_preview.js +++ b/js/components/ascribe_uploader/file_drag_and_drop_preview.js @@ -27,6 +27,9 @@ let FileDragAndDropPreview = React.createClass({ } }, + // implement a handle cancel action here that triggers fineuploaders cancel method + // to delete files that are currently uploading + render() { let previewElement; diff --git a/js/components/ascribe_uploader/react_s3_fine_uploader.js b/js/components/ascribe_uploader/react_s3_fine_uploader.js index 626d8bd7..985e5d90 100644 --- a/js/components/ascribe_uploader/react_s3_fine_uploader.js +++ b/js/components/ascribe_uploader/react_s3_fine_uploader.js @@ -221,6 +221,7 @@ var ReactS3FineUploader = React.createClass({ onCancel() { console.log('cancel'); + // handle file removal here, for this.state.filesToUpload (same as in onDeleteComplete) }, onSessionRequestComplete() {