No 'upload-success' event when uploading from Dropbox (due to error)
See original GitHub issuewhen uploading files directly all the events fire as documented. however, when uploading files from dropbox (to s3 – using uppy-server
), none of the events fire.
uppy.run();
uppy.on('upload-success', (file, res, uploadURL) => {
console.log('XXXX upload-success');
console.log(file, res, uploadURL);
});
uppy.on('upload-error', (file, err) => {
console.log('XXXX upload-error');
console.log(file, err);
});
uppy.on('complete', (result) => {
console.log('XXXX complete');
console.log(result);
});
uppy.on('error', () => {
console.log('XXXX error');
console.log(uppy.state.error);
});
uppy.upload()
.then((result) => {
console.log(result);
});
that’s due to this line causing the error above, before uppy.emit('upload-success' ...
gets called.
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (1 by maintainers)
Top Results From Across the Web
Common sharing errors and how to solve them - Dropbox Help
Error: "There are too many files." · Sign in to dropbox.com. · Locate the folder with too many files and rename it. ·...
Read more >Some files within a folder have not uploaded, alth...
I initially selected a folder to upload. It began to upload but stopped because I reached my Dropbox capacity.
Read more >Top 10 Solutions to Fix Dropbox Not Uploading Issue
The Network connection is not stable. If there is something wrong with the network, Dropbox will fail to upload files. File incompatibility. File...
Read more >Dropbox direct upload files from browser - javascript
As other answers have noted, each session uploading or downloading the file will need to have access to a dropbox token. Sending someone...
Read more >I am Having Trouble Uploading an Assignment File.
This error message appears when you click Add before your file has completely uploaded. Wait until the green loading bar on your file...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Why wasn’t the https://github.com/transloadit/uppy-server/issues/71 fixed by adding
getResponseHeader
to the fake “xhr” object, it isn’t trivial to re-implement (it should be case insensitive, people using it will be lazy and most likely won’t implement that) and apparently it breaks in multiple places (better fix the source than find new places where it breaks every now and then).AFAIK, this issue is now fixed. Please re-open if I’m wrong