Skip to content

Commit

Permalink
more file types are now allowed to upload in wysiwyg editor
Browse files Browse the repository at this point in the history
  • Loading branch information
grossmannmartin committed Dec 20, 2023
1 parent 0c08daa commit c7189dc
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
2 changes: 2 additions & 0 deletions UPGRADE-14.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,8 @@ Follow the instructions in relevant sections, e.g. `shopsys/coding-standards` or
- see #project-base-diff to update your project
- enhance your stores tests ([#2835](https://github.com/shopsys/shopsys/pull/2951))
- see #project-base-diff to update your project
- allow more files to be uploaded in WYSIWYG editor ([#2948](https://github.com/shopsys/shopsys/pull/2948))
- see #project-base-diff to update your project

### Storefront

Expand Down
36 changes: 34 additions & 2 deletions project-base/app/config/packages/fm_elfinder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,23 @@ fm_elfinder:
flysystem:
enabled: true
filesystem: 'main_filesystem'
upload_allow: ['image/png', 'image/jpg', 'image/jpeg']
upload_allow:
- 'image/png'
- 'image/jpg'
- 'image/jpeg'
- 'image/gif'
- 'image/webp'
- 'text/csv'
- 'text/plain'
- 'application/pdf'
- 'application/msword'
- 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
- 'application/vnd.ms-excel'
- 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
- 'application/vnd.ms-powerpoint'
- 'application/vnd.openxmlformats-officedocument.presentationml.presentation'
- 'application/zip'
- 'video/quicktime'
tmb_path: 'web/%shopsys.filemanager_upload_web_dir%/_thumbnails'
url: '%shopsys.filemanager_upload_web_dir%'
tmb_url: '%shopsys.filemanager_upload_web_dir%/_thumbnails'
Expand Down Expand Up @@ -41,7 +57,23 @@ fm_elfinder:
flysystem:
enabled: true
filesystem: 'main_filesystem'
upload_allow: [ 'image/png', 'image/jpg', 'image/jpeg' ]
upload_allow:
- 'image/png'
- 'image/jpg'
- 'image/jpeg'
- 'image/gif'
- 'image/webp'
- 'text/csv'
- 'text/plain'
- 'application/pdf'
- 'application/msword'
- 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
- 'application/vnd.ms-excel'
- 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
- 'application/vnd.ms-powerpoint'
- 'application/vnd.openxmlformats-officedocument.presentationml.presentation'
- 'application/zip'
- 'video/quicktime'
tmb_path: 'web/%shopsys.filemanager_upload_web_dir%/_thumbnails'
url: '%shopsys.filemanager_upload_web_dir%'
tmb_url: '/%shopsys.filemanager_upload_web_dir%/_thumbnails'
Expand Down

0 comments on commit c7189dc

Please sign in to comment.