Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
hzy916
8 years agoExplorer | Level 3
Upload pdf(using swift sdk) is damaged when downloading from dropbox
I am following the instructions on https://github.com/dropbox/SwiftyDropbox#download-style-request and I successfully upload my pdf to dropbox. However the uploaded pdf cannot be previewed and when ...
chirstius
Dropbox Staff
8 years agoHello hzy916,
I think the issue here is that you're trying to encode the PDF file as if it were text data and not binary data.
Try creating a URL to the local file path and updating your request to point the 'input' parameter directly to that URL.
See if that works as expected.
-Chuck
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!