Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
kmsbs
7 years agoExplorer | Level 4
what should be a file download path
what is the correct download path :
mDbxClient.files().download(Path =?);
mDbxClient.files().download("https://www.dropbox.com/home/Apps/AndroidDbAppStorage") .downloa...
kmsbs
7 years agoExplorer | Level 4
what is the path pattern :
mDbxClient.files().download("https://www.dropbox.com/home/Apps/AndroidDbAppStorage/"+name)
.download(outputStream);
mDbxClient.files().download("https://www.dropbox.com/home/Apps/AndroidDbAppStorage/"+name)
.download(outputStream);
Greg-DB
Dropbox Community Moderator
7 years agoThe path values you supply to the API should be paths relative to the root of the Dropbox account (or relative to the app folder root, if you're using an app with the app folder permission), not Dropbox web site URLs as you have here.
So, for example, to upload a file "myfile.txt" to your root, you would use "/myfile.txt". Or, to upload it into a subfolder "Documents", you would use "/Documents/myfile.txt".
You can also get the correct path values from Metadata.getPathLower, if/when you get the metadata for existing files elsewhere on the API:
https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/Metadata.html#getPathLower--
- kmsbs7 years agoExplorer | Level 4here my path :
/Apps/AndroidDbAppStorage/"+name
it return empty file.- Greg-DB7 years ago
Dropbox Community Moderator
If the download call is returning successfully but is yielding a 0 byte file, it's likely because the file you have uploaded to Dropbox is 0 bytes long. You can check the Dropbox web site to confirm that.
If you don't expect to have a 0 byte file uploaded, you should check on where/how you're uploading it, and then upload the correct version.- kmsbs7 years agoExplorer | Level 4File contain data and the size is in kb
About Discuss Dropbox Developer and API
Explore Dropbox Developer & API discussions with developers like you.
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!