discourse/app
Martin Brennan 36bd6e8c3b
DEV: Improve uppy plugin base and large file handling (#14383)
We want to be able to skip plugins from doing any work under
certain conditions, and to be able raise their own errors if
a file being uploaded is completely incompatible with the concept
of the plugin if it is enabled. For example, the UppyChecksum plugin
is happy to skip hashing large files, but the UppyUploadEncrypt
plugin from discourse-encrypt relies on the file being encrypted
to do anything with the upload, so it is considered a blocking
error if the user uploads a file that is too large.

This improves the base functions available in uppy-plugin-base and
extendable-uploader to handle this, as well as introducing a
HUGE_FILE_THRESHOLD_BYTES variable which represents 100MB in bytes,
matching the ExternalUploadManager::DOWNLOAD_LIMIT on the
server side.

discourse-encrypt to take advantage of this new functionality will
follow in https://github.com/discourse/discourse-encrypt/pull/141
2021-09-20 16:12:26 +10:00
..
assets DEV: Improve uppy plugin base and large file handling (#14383) 2021-09-20 16:12:26 +10:00
controllers FIX: Update only passed custom fields (#14357) 2021-09-17 13:37:56 +03:00
helpers FIX: Offer site_logo_dark_url as an option for dark mode themes (#14361) 2021-09-16 17:47:51 -04:00
jobs DEV: use upload id to save in theme setting instead of URL. (#14341) 2021-09-16 07:58:53 +05:30
mailers UX: suspend forever time period messages (#13776) 2021-07-20 14:42:08 +04:00
models DEV: trash category definition topic instead of destroying. (#14356) 2021-09-20 11:20:49 +05:30
serializers DEV: Ignore reminder_type for bookmarks (#14349) 2021-09-16 09:56:54 +10:00
services FIX: Update only passed custom fields (#14357) 2021-09-17 13:37:56 +03:00
views FIX: Offer site_logo_dark_url as an option for dark mode themes (#14361) 2021-09-16 17:47:51 -04:00