call getObject() once explicitly to reduce number of calls.
Attach a file by drag & drop or click to upload