diff --git a/client/modules/IDE/actions/uploader.js b/client/modules/IDE/actions/uploader.js index c177ae51..fa8229e8 100644 --- a/client/modules/IDE/actions/uploader.js +++ b/client/modules/IDE/actions/uploader.js @@ -34,7 +34,6 @@ export function dropzoneAcceptCallback(file, done) { // for text files and small files // check mime type // if text, local interceptor - console.log(file.type); if (file.type.match(textFileRegex)) { localIntercept(file).then(result => { file.content = result; // eslint-disable-line @@ -88,7 +87,7 @@ export function dropzoneSendingCallback(file, xhr, formData) { export function dropzoneCompleteCallback(file) { return (dispatch, getState) => { // eslint-disable-line - if (!file.type.match(textFileRegex)) { + if (!file.type.match(textFileRegex) && file.status !== 'error') { let inputHidden = '