This extends the queryToObject function to remove undefined values from the resulting object
Attach a file by drag & drop or click to upload