Skip to content

Commit

Permalink
Merge pull request #247 from goapunk/jd-2024-09-update-file-upload-pl…
Browse files Browse the repository at this point in the history
…ugin

package.json: update file-uploader plugin to v0.0.4.
  • Loading branch information
hvlads authored Oct 17, 2024
2 parents be9467c + 7c84081 commit be3fd0d
Show file tree
Hide file tree
Showing 5 changed files with 632 additions and 6,949 deletions.
20 changes: 18 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -377,10 +377,26 @@ to your config:
CKEDITOR_5_CONFIGS = {
'default': {
'toolbar': ['heading', '|', 'bold', 'italic', 'link',
'bulletedList', 'numberedList', 'blockQuote', 'imageUpload' ], # include fileUpload here
'bulletedList', 'numberedList', 'blockQuote', 'imageUpload', 'fileUpload' ], # include fileUpload here
'language': 'de',
},
}
**Warning**: Uploaded files are not validated and users could upload malicious
content (e.g. a pdf which actually is an executable). Furthermore allowing file
uploads disables any validation for the image upload as the backend can't
distinguish between image and file upload. Exposing the file upload to
all/untrusted users poses a risk!
Restrict upload file size:
^^^^^^^^^^^^^^^^^^^^^^^^^^
You can restrict the maximum size for uploaded images and files by adding
.. code-block:: python
CKEDITOR_5_MAX_FILE_SIZE = 5 # Max size in MB
to your config. Default is 0 (allow any file size).
Installing from GitHub:
Expand Down
Loading

0 comments on commit be3fd0d

Please sign in to comment.