Use the newer constructed instead, which has a fast path in GObject.
Attach a file by drag & drop or click to upload