Use standard scripts instead of MPD's custom implementation.
Attach a file by drag & drop or click to upload