I've used Cloudflare rules, thanks. I've chosen to be a little more conservative:
(any(http.request.headers["content-type"][*] contains "multipart")) (any(http.request.headers["content-type"][*] contains "multipart")) any(lower(http.request.headers["content-type"][*])[*] contains "multipart")
Also, unless your server is specifically set up to only accept requests from Cloudflare, someone could likely send a request directly to your IP, so you might consider blocking multipart requests at the server level. For Nginx I added the following to all /server blocks: if ($http_content_type ~* "multipart") { return 403; }
Luckily our service doesn't use multipart for any critical requests.