Join the Conversation: The Dash Community Is Now Open! ✨🎉
Forum Discussion
srinivas d.
10 years agoNew member | Level 1
dbxClient getFile failing with absolute output file path???
I'm using dropbox PHP SDK
I'm trying to download all newly added files using /delta API.
So, when I use dbxClient getFile method to download the newly added file, it successfully downloads the file only when I give the outstream as relative path.
The same getFile downloads a 0 bytes file when I give absolute path as outstream.
$download_file_path = $lsPath; --> This works
$download_file_path = '/opt/sample/dropbox_ingest' . $lsPath; --> This fails
$fd = fopen($download_file_path, "wb");
$dbxClient->getFile($lsPath,$fd,null);
Please let me know if i'm doing something wrong here!!
Thanks,
Srinivas
1 Reply
Replies have been turned off for this discussion
- Greg-DB10 years ago
Dropbox Community Moderator
What error/output do you get when you try to run with the absolute path?
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!