The replacement code uses tempnam(), which is dangerous. Such a fringe feature is not worth the trouble.
Attach a file by drag & drop or click to upload