While developing a Forge app to support Confluence Cloud OAuth 2.0, we encountered an issue where downloading attachments with certain file extensions (DOC, PDF, PPTX) results in corrupted files. We have tried multiple encoding methods (binary, UTF-8, and Base64) when returning the content, but none work correctly for these file types. However, attachments with extensions such as TXT, HTML and CSV download without any issue. This is currently blocking our ability to fully support all attachment types in our Forge app. We have searched extensively through Atlassian documentation and community forums but have found limited information.
Is this a known limitation / bug in Forge Confluence Cloud ?
Are there any recommended best practices or patterns for reliably streaming binary attachments (DOCX, PDF, PPTX) in Forge / Confluence apps, without corruption?
Could you escalate this to the engineering team for investigation (if not already known)?
Thank you very much for your time and assistance. If you need any additional diagnostic data, logs, code blocks or sample files, we'd be happy to provide them.