as explained in comment, this API is asynchronous but the promise to await is not exposed
Attach a file by drag & drop or click to upload