-
- Downloads
[FIX] web_editor: decode base64 of uploaded non-image documents
Since [1] non-image documents uploaded in web editor were stored as received in base64 without being decoded. This led to downloading them as they were stored in base64. After this commit uploaded documents are base64-decoded before being stored. Steps to reproduce: - edit a web page - drop a "Text - Image" snippet - replace the image - upload a document (PDF, TXT...) - save page - download document => received document was base64-encoded [1]: https://github.com/odoo/odoo/commit/6b8752604898bf2b583b7f5334e35f6a1583595e task-2782269 closes odoo/odoo#86812 X-original-commit: b0218b8ff50c7cea2a018d20a62e63510bfdd01e Signed-off-by:Quentin Smetz (qsm) <qsm@odoo.com>
Showing
- addons/web_editor/controllers/main.py 2 additions, 1 deletionaddons/web_editor/controllers/main.py
- addons/web_editor/tests/__init__.py 1 addition, 0 deletionsaddons/web_editor/tests/__init__.py
- addons/web_editor/tests/test_controller.py 32 additions, 0 deletionsaddons/web_editor/tests/test_controller.py
addons/web_editor/tests/test_controller.py
0 → 100644
Please register or sign in to comment