self.getObject() is called right at the begining of this methd anyway, so just keep & reuse it.
Attach a file by drag & drop or click to upload