pDocumentTemplate compatibility is not vital, this solution works well enough.
Attach a file by drag & drop or click to upload