Credits to @canyie for the initial PR and finding the bug Close #5791, fix #5789
Attach a file by drag & drop or click to upload