One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
Ariel1359
4 years agoExplorer | Level 3
help with c#
HI!
I'm beginner in coding.
I'm using Visual Studio 2017 - windows forms, with c#.
I succeeded to upload and download files less than 150 MB.
Someone can help me with uploading and downloading files more than 150MB?
please!
Sorry about my poor English..
- Greg-DB
Dropbox Staff
[Cross-linking for reference: https://stackoverflow.com/questions/67369803/dropbox-api-with-c-sharp-upload-large-files ]
We recommend using the official Dropbox API v2 .NET SDK. With that, to download files of any size, you should use the DownloadAsync method. There's an example of that here.
To upload files smaller than 150 MB, you can use the UploadAsync method. There's an example of that here.
To upload larger files, you need to use "upload sessions", starting with the UploadSessionStartAsync method. You can find an example of that here.
- Ariel1359Explorer | Level 3
thanks!
But I still have a problem. When I calling this Task, I get an Error messege - Dropbox.Api.ApiException`1: 'path/malformed_path/.'
this is the parameters:
await ChunkUpload(dbx, "/DropBoxFolder", "@(C:\Example\exampleFile.txt)");
with or without @, it still doesn't work.
What shuold i do?
- Greg-DB
Dropbox Staff
The third parameter to that ChunkUpload method is supposed to the "fileName" you want to upload the file as on Dropbox, which might look like "exampleFile.txt", for instance. You are instead supplying "C:\Example\exampleFile.txt" which is a local Windows file path, and not a valid Dropbox file name.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,950 PostsLatest Activity: 12 minutes ago
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 or Facebook.
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!