Skip to content

mime type not set correctly #160

@BrendenCA

Description

@BrendenCA

Hello @dsoprea

I have been uploading a couple of MKV video files and they are being uploaded with mimetype=application/octet-stream Which is incorrect.

The uploaded data is still there and valid, the only issue is I am unable to preview the file online ( drive.google.com ) because google drive has the wrong mime type.

If mime_type is set to None, then google drive will automatically determine the mime type from the uploaded content.
Source: https://developers.google.com/drive/v2/reference/files/insert#request-body

I have tried commenting line 513 in drive.py and it seems to have worked.
https://github.com/dsoprea/GDriveFS/blob/master/gdrivefs/gdtool/drive.py#L513

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