Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The module adds the possibility to upload additional types of files into the media gallery. This module creates a new widget called FileUrl that allows uploading a file.

Installation

Info

This module is a part of MageSuite metapackage

...

Code Block
composer require "creativestyle/magesuite-file-upload" ^1.0.0

Admin settings

Allowed file types:

Code Block
<item name="pdf" xsi:type="string">application/pdf</item>
<item name="doc" xsi:type="string">application/msword</item>
<item name="docm" xsi:type="string">application/vnd.ms-word.document.macroEnabled.12</item>
<item name="docx" xsi:type="string">application/vnd.openxmlformats-officedocument.wordprocessingml.document</item>
<item name="csv" xsi:type="string">text/plain</item>
<item name="xml" xsi:type="string">application/xml</item>
<item name="xls" xsi:type="string">application/vnd.ms-office</item>
<item name="xlsx" xsi:type="string">application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</item>
<item name="zip" xsi:type="string">application/zip</item>
<item name="tar" xsi:type="string">application/x-tar</item>
<item name="rar" xsi:type="string">application/x-rar</item>
<item name="mp4" xsi:type="string">video/mp4</item>

Backend

Image manipulation operations are disabled for non-image files

Frontend

In order to use FileUrl widget open WYSIWYG Editor and choose widgets and then File URL widget:

...