Also changed min api level to 23 and removed some redundant code
Attach a file by drag & drop or click to upload