I am new to Rails and Context.IO. I am trying to create a record in my database based on values fetched from mail.
I am trying to fetch mail attachment and download that onto a directory in my /public on my server using contextio.
I have successfully got the path of the attachment, the only problem is when i am trying to download, i am getting stuck.
I have tried 1. "net/http", this is unsuccessful coz the URI is https. 2. FileUtils.cp_r(source,destination), It says No such file or directory for my source. If i access the source uri from browser it pops up me to download the file.