One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
Johnson9070
3 years agoHelpful | Level 6
Problem downloading file from dropbox
Hi all ,
I can't get this to work:
(part of a python class)
def download_file(self, source_file): "Download a file from Dropbox" print('Start Dropbox download') with open(source_file, "wb") as f: metadata, res = self.dbx.files_download(path='F:/Profielmap/Downloads/DropboxToken.txt') f.write(res.content)
I get error: dropbox did not match pattern
The file should be downloaded in F:/Profielmap/Downloads, tried changing slashes , going through a variable, i keep getting syntax errors about not matching any patteren ,why is this so hard to find ?? ;-)
When i use path="/DropboxToken.txt" the file downloads in F:
Cheers ,John
I swapped "to" and "from" location , never mind this question 😉
- Johnson9070Helpful | Level 6
I swapped "to" and "from" location , never mind this question 😉
- Greg-DB
Dropbox Staff
[Cross-linking for reference: https://stackoverflow.com/questions/71549526/downloading-file-from-dropbox-dropbox-api ]
Thanks for sharing the resolution. I'm glad to hear you already got this sorted out.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,943 PostsLatest Activity: 54 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!