wiki icon indicating copy to clipboard operation
wiki copied to clipboard

Upload parameter not correctly shown

Open SharkProgramming opened this issue 7 years ago • 4 comments

Describe the bug After the update of parameter maxFileSize and maxFiles in config.yml , the interface always show the default parameters . But parameters are really applied .

To Reproduce Steps to reproduce the behavior:

  1. Go to config.yml file
  2. Edit parameter maxFileSize to 10485760 and maxFiles to 20 for example
  3. Go to Article edition and insert an image with the upload view
  4. See error

Expected behavior we have to see the real parameter shown in this frame

Screenshots issue3

Host Info (please complete the following information):

  • OS: Ubuntu 18.04.3
  • Wiki.js version: 2.0.0-rc.17
  • Database engine: MariaDB 10.3.18

SharkProgramming avatar Nov 05 '19 12:11 SharkProgramming

any updates?

sn0n avatar Jun 29 '21 13:06 sn0n

Looks like this is still hardcoded :( https://github.com/Requarks/wiki/blob/f55caab359ca7715012e3f9a3b9e31f16cccf399/client/components/editor/editor-modal-media.vue#L153

nook24 avatar Aug 11 '21 07:08 nook24

Verified on current main (6f042e97, 2026-08-06): confirmed still present.

The backend correctly uses WIKI.config.uploads.maxFileSize / maxFiles in server/controllers/upload.js, and the values are exposed by the site resolver. However, client/components/editor/editor-modal-media.vue still hard-codes both max-files='10' and the caption Max 10 files, 5 MB each (currently around lines 147-153). There is no reference to uploadMaxFileSize or uploadMaxFiles in that component.

So custom limits are enforced server-side, but the editor upload UI still displays the defaults.

TimoKruth avatar Aug 06 '26 18:08 TimoKruth

No longer an issue in v3.

NGPixel avatar Sep 27 '26 22:09 NGPixel