Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Mubasher
5 years agoExplorer | Level 4
uploading large files (1GB) using token
I am making a page where the user pastes the URL of the file and I fetch that file make its zip then uploading it to dropbox. it's working fine with the small files such as 150Mb or 250Mb but not wit...
Здравко
5 years agoLegendary | Level 20
Hi Mubasher,
How exactly you are uploading your data? 🤔 Are you using "upload" endpoint in all cases, the point where upload size is limited, or use upload session endpoints (start, append, and finish) for larger files (there is a limit still, but the size is much bigger)? 🧐
Hope the rhetorical question gives you right direction. 😉
- Mubasher5 years agoExplorer | Level 4
I don't know much about Dropbox but this is the code that I am using in order to upload data.
var path ="/file" +Math.floor(Math.random() * 10000) +"." +file.type.split("/")[1];$.ajax({data: file,crossDomain: true,crossOrigin: true,type: "POST",processData: false,contentType: "application/octet-stream",headers: {Authorization: "Bearer " + dropboxToken,"Dropbox-API-Arg": '{"path": "' + path + '"}',},success: function (data) {console.log(data);alert("File uploaded to dropbox.");},error: function (data) {console.error(data);alert("There was an error uploading to Dropbox.");},});- Здравко5 years agoLegendary | Level 20
Mubasher wrote:I don't know much about Dropbox ...
Nobody knows everything. Did you read everything pointed by my links in my previous post? 🤔 Seems not. Do it! Your code falls in 150MB limitation. 😉 Read with more care!
- Mubasher5 years agoExplorer | Level 4
ok i am reading but my code is working fine for 250Mb but it fails at 1Gb because of my internet i think. Can you tell me that i have to use backend for upload_session? or it can be done without server?
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!