Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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
[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.
Hi there!
If you need more help you can view your support options (expected response time for a 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!