transloadit / uppy

The next open source file uploader for web browsers :dog:
https://uppy.io
MIT License
28.99k stars 2k forks source link

Uppy Cannot read property 'progress' of undefined #2564

Closed tarek-madani closed 3 years ago

tarek-madani commented 3 years ago

Hi all, Thank you very much for this amazing work.

I am using Uppy to upload files to a php server. I have been using it for some time and never had an issue. But now I have an error telling me "Uppy Cannot read property 'progress' of undefined" when I try to do uppy.upload(). Here is the code: uppyDashboard.use(XHRUpload, { //XHRUpload is defined earlier endpoint: 'process-visio-manage-documents.php?', fieldName: 'addedDocuments', getResponseData() { return {}; // just empty to prevent error of return when we return nothing from server. } });

uppyDashboard.upload().then(() => {//error is somewhere here with the upload bcz when I comment it, I don't see the error showSuccessAlert("success"); });

Any help is highly appreciated. Thank you

tarek-madani commented 3 years ago

Solved, the issue was that I put a cancelAll after the upload(), which was cancelling the upload before it ends..