Browse Source

rm console.log

Renée Kooi 7 years ago
parent
commit
8a5986e46b
1 changed files with 4 additions and 6 deletions
  1. 4 6
      src/plugins/AwsS3/Multipart.js

+ 4 - 6
src/plugins/AwsS3/Multipart.js

@@ -134,11 +134,11 @@ module.exports = class AwsS3Multipart extends Plugin {
           err.message = `Failed because: ${err.message}`
           reject(err)
         },
-        onSuccess: ({ location }) => {
-          this.uppy.emit('upload-success', file, upload, location)
+        onSuccess: (result) => {
+          this.uppy.emit('upload-success', file, upload, result.location)
 
-          if (location) {
-            this.uppy.log('Download ' + upload.file.name + ' from ' + location)
+          if (result.location) {
+            this.uppy.log('Download ' + upload.file.name + ' from ' + result.location)
           }
 
           resolve(upload)
@@ -159,8 +159,6 @@ module.exports = class AwsS3Multipart extends Plugin {
         }
       }, file.s3Multipart))
 
-      console.log('uploader', upload)
-
       this.uppy.on('file-removed', (removed) => {
         if (file.id !== removed.id) return
         upload.abort({ really: true })