Explorar o código

fixup! xhrupload: Add back the response data event parameter

Renée Kooi %!s(int64=7) %!d(string=hai) anos
pai
achega
37c9d932e9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/core/Core.js

+ 1 - 1
src/core/Core.js

@@ -414,7 +414,7 @@ class Uppy {
       throttledCalculateProgress(data)
     })
 
-    this.on('core:upload-success', (fileID, data, uploadURL) => {
+    this.on('core:upload-success', (fileID, uploadResp, uploadURL) => {
       const updatedFiles = Object.assign({}, this.getState().files)
       const updatedFile = Object.assign({}, updatedFiles[fileID], {
         progress: Object.assign({}, updatedFiles[fileID].progress, {