This is more idiomatic style and available as of Python 2.4, which is our minimum.
Attach a file by drag & drop or click to upload