There is not. Even our version of Django is very much out of date.
This is the JS that uploads attachments: https://github.com/microcosm-cc/microweb/blob/master/core/static/js/attachments.js
This is where it hooks into the HTML: https://github.com/microcosm-cc/microweb/blob/master/core/templates/forms/block_comment_box.html#L39-L80
And this is one of the templates that pulls the above together: https://github.com/microcosm-cc/microweb/blob/master/core/templates/forms/create_comment.html#L94-L99
Thankfully the JS is self-contained enough that it should be fixable without even running the whole site.
I've had this bookmarked for a few years: https://developer.mozilla.org/en-US/docs/Web/API/File/Using_files_from_web_applications and suspect there's a cut and paste solution from that page.
Too lazy for good commit messages, but here's the PR:
https://github.com/microcosm-cc/microweb/pull/299
Deployed but not merged.
Discovered that I can no longer deploy! Our Django is that old... so deploying here meant ssh to the server and overwrite the file in question.
Now just to test it...
@pascalo started
London Fixed Gear and Single-Speed is a community of predominantly fixed gear and single-speed cyclists in and around London, UK.
This site is supported almost exclusively by donations. Please consider donating a small amount regularly.
There is not. Even our version of Django is very much out of date.
This is the JS that uploads attachments: https://github.com/microcosm-cc/microweb/blob/master/core/static/js/attachments.js
This is where it hooks into the HTML: https://github.com/microcosm-cc/microweb/blob/master/core/templates/forms/block_comment_box.html#L39-L80
And this is one of the templates that pulls the above together: https://github.com/microcosm-cc/microweb/blob/master/core/templates/forms/create_comment.html#L94-L99
Thankfully the JS is self-contained enough that it should be fixable without even running the whole site.
I've had this bookmarked for a few years: https://developer.mozilla.org/en-US/docs/Web/API/File/Using_files_from_web_applications and suspect there's a cut and paste solution from that page.