question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No 'upload-success' event when uploading from Dropbox (due to error)

See original GitHub issue

when 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);
	});

screen shot 2018-03-20 at 14 26 49

that’s due to this line causing the error above, before uppy.emit('upload-success' ... gets called.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Mar 22, 2018

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).

0reactions
ifedapoolarewajucommented, May 2, 2018

AFAIK, this issue is now fixed. Please re-open if I’m wrong

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found