mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 04:03:57 -06:00
7911124d3d
This PR adds the first use of Uppy in our codebase, hidden behind a enable_experimental_image_uploader site setting. When the setting is enabled only the user card background uploader will use the new uppy-image-uploader component added in this PR. I've introduced an UppyUpload mixin that has feature parity with the existing Upload mixin, and improves it slightly to deal with multiple/single file distinctions and validations better. For now, this just supports the XHRUpload plugin for uppy, which keeps our existing POST to /uploads.json. |
||
---|---|---|
.. | ||
assets | ||
data |