Steps to reproduce
- Update Nextcloud from 33.0.2 to 33.0.3 via
occ upgrade
- Open any Office file (.docx, .xlsx, .pptx, .odt, etc.) in the Files app
Expected behavior
File opens in Nextcloud Office (richdocuments/Collabora)
Actual behavior
Browser immediately triggers a download dialog. Files are downloaded instead of opened.
Fix
Manually running the following commands resolves the issue:
php occ maintenance:mimetype:update-db
php occ maintenance:mimetype:update-js
Output: "Added 88 new mimetypes" — all missing after the 33.0.2 → 33.0.3 update.
Environment
Nextcloud: 33.0.2 → 33.0.3
richdocuments (Collabora): 10.1.3
viewer: 6.0.0
PHP OPcache: enabled (Apache)
DB: MySQL
Root cause
occ upgrade does not call maintenance:mimetype:update-db during the
33.0.2 → 33.0.3 patch migration. New MIME types added to mimetypemapping.json
in 33.0.3 are never written to the oc_mimetypes table, so Nextcloud cannot
route file opens to the correct viewer app — it falls back to a browser download.
Steps to reproduce
occ upgradeExpected behavior
File opens in Nextcloud Office (richdocuments/Collabora)
Actual behavior
Browser immediately triggers a download dialog. Files are downloaded instead of opened.
Fix
Manually running the following commands resolves the issue:
php occ maintenance:mimetype:update-dbphp occ maintenance:mimetype:update-jsOutput: "Added 88 new mimetypes" — all missing after the 33.0.2 → 33.0.3 update.
Environment
Nextcloud: 33.0.2 → 33.0.3
richdocuments (Collabora): 10.1.3
viewer: 6.0.0
PHP OPcache: enabled (Apache)
DB: MySQL
Root cause
occ upgrade does not call maintenance:mimetype:update-db during the
33.0.2 → 33.0.3 patch migration. New MIME types added to mimetypemapping.json
in 33.0.3 are never written to the oc_mimetypes table, so Nextcloud cannot
route file opens to the correct viewer app — it falls back to a browser download.