0

I have used google drive api to upload files. Here in the code of file upload, a mime type is mentioned.

$result = $service->files->create(
        $file,
        array(
            'data' => file_get_contents($file_path),
            'mimeType' => 'application/octet-stream',
        )
    );

i want the mime-type to be pdf and doc/docx, how can I make this happen?

SA Ira
  • 63
  • 11

0 Answers0