In those case the pl_* API doesn't seems convienent/well used.
Attach a file by drag & drop or click to upload