We need to upload the Doc, Docx, Xls, and Xslx on the static block.
We also only image filetype and PDF.
Please share if you have any ideas.
Thank you.
you can use the following extension
https://github.com/experius/Magento-2-Module-Experius-WysiwygDownloads
it allows following extensions
kindly Accept as a Solution if this helps and give Kudos.
Understand WYSIWYG Limitations – Most WYSIWYG editors (TinyMCE, CKEditor, etc.) natively support image and sometimes PDF uploads, but not Doc/Docx/Xls/Xlsx by default.
Enable File Upload Plugin – Check if your editor supports a file upload or file manager plugin, as this is the simplest way to handle non-image formats.
Allow MIME Types – Configure your backend to allow MIME types like application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, and application/vnd.ms-excel.
Update Validation Rules – If you have server-side validation, update it to accept these file formats in addition to images and PDFs.
File Storage Location – Store uploaded documents in a secure folder (outside the public root if possible) and serve them via a controlled download link like nulls brawl.
Insert as Hyperlink – Instead of rendering Doc/Excel directly in the editor, insert them as a downloadable hyperlink like inside your content.
Security Concerns – Always sanitize file names and check for malicious code since Word/Excel files can sometimes carry macros.
Editor Toolbar Customization – Add a button to your WYSIWYG editor that allows selecting and inserting these file links (similar to image insert).
Use External Viewer – If inline preview is required, integrate Google Docs Viewer or Microsoft Office Viewer for embedding the files.
Check CMS Support – If this is for a CMS like Magento/WordPress, check if there are ready-made extensions or plugins to allow uploading these formats.
Fallback Option – Convert files into PDF before upload if users face compatibility issues, since PDF is widely supported in most editors.
Example Reference – Just like when people share gaming mods such as nulls brawl files with specific formats, you need a backend handler that permits uploading and linking these docs securely.
Most WYSIWYG editors in Magento only support images and PDFs. For DOC/DOCX or XLS/XLSX, the usual approach is to upload the file to your media library and then add a download link in the static block. If you need direct upload support for these file types, you would have to customize the file browser configuration or install an extension that allows additional formats.