Skip to content

File not downloading #8

@maheshcheliya

Description

@maheshcheliya

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
                }
            }];
}];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions