This returns the proper value, and fixes a memory leak.
Attach a file by drag & drop or click to upload