I am trying to attach files from the downloads folder of my mobile device(Samsung), while doing so the checkFile() function used is giving error. Below is my code: