Factorize into a single function and support Marlin-style reports
Attach a file by drag & drop or click to upload