Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
dwgabriel
5 years agoExplorer | Level 3
Dropbox UploadSession Start/Append/Finish with Fetch - TypeError:Failed to fetch
Hi guys, I'm using Fetch with Dropbox for file uploads on my website and it works fine for uploads <150 mb
(https://content.dropboxapi.com/2/files/upload)
However, when I attempt upload >150 ...
Greg-DB
Dropbox Community Moderator
5 years agoI see, thanks for clarifying. No, that wouldn't explain /start failing, since /start itself returns the session ID to begin with. I happened to be testing in Firefox, where the /start call did work successfully for me (and still does).
Trying in Chrome now though, I can reproduce this issue. I'm not sure exactly why this is failing in Chrome but not Firefox, but as this is apparently due to some different in how Chrome itself handles this, as opposed to the Dropbox API itself, I may not be able to offer much help.
I notice that the call to /2/files/upload (for smaller files) does work in Chrome though. As a next step in debugging this, I recommend looking into what the difference is in your implementation for these different calls. It's difficult to see exactly what there is in the code on my side since it's minified, but it looks like you're doing a "return fetch..." for /2/files/upload, but don't have the "return" for /2/files/upload_session/start. Likewise, you seem to be manually specifying "Content-Length" for /2/files/upload_session/start but not for /2/files/upload.
dwgabriel
5 years agoExplorer | Level 3
Hey Greg-DB , thanks for the insight, I'll give FireFox a try as well.
As for the inconsistencies on my the two different fetches, I'm just desperate right now so I'm adding and removing parts of the fetch to see if it makes any difference. Since it threw a TypeError, I thought perhaps it had something to do with my syntax. As in my original post, I've tried to keep the two fetches as consistent as possible but still nothing unfortunately.
Thank you so much for taking the time to check this out, Greg-DB . Greatly appreciate it!
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!