You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
RafaelAchmedov
3 years agoExplorer | Level 3
Re: Upload PDF files/proper encoding
Hello, I have the same issue.
Pdf file is generated using python PyPDF4 PdfFileWriter and saved in temporary folder. Then upload that file to current dropbox folder. Upload is successful, file size is same as in temp folder. But file in temp folder can be open with any apps or web browser, uploaded file in dropbox is not opening with the notification "There was an error opening this document. The file is damaged and could not be repaired". Maybe you could help me?
- Greg-DBDropbox Staff
I'll be happy to help with any issues you're having with the Dropbox API, but I'll need some more information. Please reply with:
- the name and version number of the platform and SDK/library you are using, if any
- the steps to reproduce the issue, including relevant code snippet(s), but don't include any access or refresh token(s)
- the full text of any error or output from the Dropbox API
- RafaelAchmedovExplorer | Level 3
Hello, Greg-DB thank you for your response. I found my mistake, I missed output.close().
When pdf file is generated it has to be closed, this one line in the code solved my issue.
Thank you anyway.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,915 PostsLatest Activity: 2 hours agoIf 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!