Skip to content

upload_file returns 0 byte file with no mime_type (high severity)Β #628

@mikewadhera

Description

@mikewadhera

Description of the bug:

genai.upload_file(path=path, mime_type=mime_type)

Any code that was once working downstream of this, including generate_content now fails

Looks like this was from a production push? Started today 11/11/24 around noon PDT.

Also #627 likely related

Actual vs expected behavior:

Expected: a file with proper size_bytes and mime_type

Actual: size_bytes always zero and mime_type always ''

Any other information you'd like to share?

Looks like this was from a production push? Started today 11/11/24 around noon PDT.

Also #627 likely related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions