I've used Google Picker API to select a file from user's Google drive. I've all the metadata about the file which is returned by this API. But I'm stuck at how to download this file on my server.
Using the following link to download the file only downloads some files properly while the others are corrupted:
"https://drive.google.com/uc?export=download&id="+fileid
I'm using rails version 3.2
Any helps would be much appreciated. Thanks.