I used below code for download file, file downloading work well when file name have extension (like abc.png, xyz.docx, aaa.pdf).
if any file has no extension in name (like abc, xyz, aaa), that file is not downloading,
it gives error : The operation couldn’t be completed. (com.google.HTTPStatus error 403.)
HSDrivePicker *picker = [[HSDrivePicker alloc] initWithSecret:googleDriveClientSecret];
[picker pickFromViewController:self withCompletion:^(HSDriveManager *manager, GTLDriveFile *file) {
[manager downloadFile:file toPath:tmpstrmahesh withCompletionHandler:^(NSError *error) {
if (error)
{
NSLog(@"Error downloading : %@", error.localizedDescription);
}
else
{
//success code
}
}];
}];
I used below code for download file, file downloading work well when file name have extension (like abc.png, xyz.docx, aaa.pdf).
if any file has no extension in name (like abc, xyz, aaa), that file is not downloading,
it gives error : The operation couldn’t be completed. (com.google.HTTPStatus error 403.)