File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
client/modules/IDE/components Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import getConfig from '../../../utils/getConfig';
99import { fileExtensionsAndMimeTypes } from '../../../../server/utils/fileUtils' ;
1010
1111const s3Bucket = getConfig ( 'S3_BUCKET_URL_BASE' ) ||
12- `https://s3-${ getConfig ( 'AWS_REGION' ) } .amazonaws.com/${ getConfig ( 'S3_BUCKET' ) } /` ;
12+ `https://s3-${ getConfig ( 'AWS_REGION' ) } .amazonaws.com/${ getConfig ( 'S3_BUCKET' ) } /` ;
1313
1414class FileUploader extends React . Component {
1515 componentDidMount ( ) {
@@ -34,7 +34,11 @@ class FileUploader extends React.Component {
3434 dictDefaultMessage : this . props . t ( 'FileUploader.DictDefaultMessage' ) ,
3535 accept : this . props . dropzoneAcceptCallback . bind ( this , userId ) ,
3636 sending : this . props . dropzoneSendingCallback ,
37- complete : this . props . dropzoneCompleteCallback
37+ complete : this . props . dropzoneCompleteCallback ,
38+ success : ( file , response ) => {
39+ console . log ( response ) ;
40+ file . previewElement . querySelector ( '.dz-progress' ) . remove ( ) ;
41+ }
3842 // error: (file, errorMessage) => {
3943 // console.log(file);
4044 // console.log(errorMessage);
You can’t perform that action at this time.
0 commit comments