Block File Exports in Collabora CODE Through WOPI
Prevent document exports in Collabora Online CODE by setting the WOPI DisableExport permission, then verify the host and editor enforce it.
To prevent users from exporting an open document in Collabora Online CODE, have your WOPI host return "DisableExport": true in that document’s CheckFileInfo response. Collabora’s integration documentation describes this as disabling export functionality; when set, the Download as menu option is hidden too. HideExportOption alone only changes the interface, so it is not the right control when the goal is to prohibit exporting. See Collabora’s extended CheckFileInfo response properties.
CODE is the editing component in a WOPI integration. Your storage or application service acts as the WOPI host and supplies per-file information when Collabora opens a document. That makes the host the appropriate place to decide whether a particular user may export a particular file.
In the JSON object returned by the host’s CheckFileInfo endpoint, include the boolean property:
{
"BaseFileName": "quarterly-plan.docx",
"Size": 24576,
"UserCanWrite": true,
"DisableExport": true
}
This is an illustrative fragment, not a complete CheckFileInfo response. Keep the other required fields and any existing integration properties your host already returns. The key value must be a JSON boolean, not the text string "true". Set it using the same authorization decision your application uses for the file and current user.
For example, an organization might let staff edit a confidential budget workbook while preventing them from using Collabora’s export functions. When the WOPI host opens that workbook for a staff member, it returns DisableExport: true. For a public template or an ordinary document, the host can return false according to its policy. A static value applied to every document is appropriate only if every user and document should receive the same restriction.
CheckFileInfo request for the file. In Nextcloud, ownCloud, or another storage product, this normally means changing the integration or policy layer that generates the response; editing the Collabora container’s global configuration is not a substitute for the host’s per-file permission.The exact file, class, setting, or administrative interface varies by WOPI host and product version. Collabora’s documentation defines the field, but it does not prescribe a universal Nextcloud or third-party application setting. If your host does not expose a download restriction, check that product’s current administration documentation or implement the policy in its supported WOPI response path.
Set HideExportOption to true when you want the Download as control hidden without enforcing the export prohibition. For an actual restriction, prefer DisableExport: true; Collabora’s integration guide says that this also implies the menu-hiding behavior. Returning both fields as true can make the intention explicit in an integration, but it should not be necessary for the documented behavior.
Do not confuse this with the extra_export_formats entries in coolwsd.xml. Collabora’s current configuration template explicitly says that disabling those optional formats only hides them visually and does not disable server-side exporting. Those options control which extra formats are offered, not whether a user is authorized to export a document. Review the current Collabora Online configuration template before changing global settings.
DisableExport applies to Collabora’s export functionality for the session. It is useful when users should edit a file in the browser but should not use the editor’s export or Download as features. It does not by itself remove the user’s access to the original file in the storage service. If the host still lets that user download the source file elsewhere, the Collabora setting does not close that path.
Likewise, a user who can view content may be able to copy information manually, take screenshots, or use other application features that your policy permits. Do not describe this setting as preventing all data exfiltration or guaranteeing that content cannot be copied. To limit access to the original, enforce download and sharing rules in the WOPI host and storage application as well. If your requirement is that a user must not see the content at all, deny document access rather than relying on an export flag.
There is also a distinction between hiding an interface item and disabling an operation. Collabora’s configuration template makes that distinction for its optional export-format settings, while the WOPI response field is the integration-level restriction. The first action is useful for simplifying menus; the second is the setting intended to block exports through Collabora. If an existing integration behaves differently, verify its Collabora release and inspect the actual CheckFileInfo response rather than assuming a particular host product maps its own “disable download” checkbox to both fields.
true and that the new response is being served.For implementation details, use Collabora’s WOPI integration reference and the project configuration template. CODE’s supported behavior can vary across releases and host integrations, so validate the response and result on the version you deploy. No claim is made here that a particular host version or sample deployment was tested.
Prevent document exports in Collabora Online CODE by setting the WOPI DisableExport permission, then verify the host and editor enforce it.
Configure Nginx TLS termination, Collabora routes, and WebSocket headers, then test the public endpoints before opening real documents.
Trace a 10-minute CODE disconnect to its proxy, load balancer, or WebSocket path, then correct the timeout and verify the session stays connected.
Install the official Collabora Helm chart, configure WOPI access and ingress affinity, and verify the deployment without common setup mistakes.
Use browser requests, WOPI logs, and targeted proxy checks to find why Collabora opens a blank document—and choose a fix that fits the evidence.
Configure CODE Docker dictionaries and tag document passages correctly so English, French, and other supported languages receive the right spell-checking.
Adjust the per-view inactivity threshold in coolwsd and distinguish it from background-tab dimming, document unloading, autosave, and login expiration.
Stop scheduled CODE update checks, review optional remote services, and use outbound network controls without breaking document editing.
Enable secure document editing in Seafile by configuring Collabora’s discovery URL, HTTPS, and WOPI access for your deployment.
Test the system clipboard, adjust browser permissions, and identify when an embedded Collabora integration needs an iframe policy change.