Composer drag and drop with custom uploader

This is exactly what the recent Client side image optimization enabled by default does. You can see the hook here:

https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/initializers/register-media-optimization-upload-processor.js

One big warning, is that we are moving from jQuery.FileUpload to Uppy in this release, so there are currently two ways of doing everything regarding this.

1 Like