Skip to content

New function to upload Primary Docs got from bytes type #7

@salvalacruz

Description

@salvalacruz

Please, we need a function to upload Primary Docs (PDFs) without reading files from the local HD, directly from a binary.

It would be similar to the current upload_file(self, pdf_file_path, share_id, language, title) in class Files, but swapping the pdf_file_path to a bytes type.

I think it's something like adding this to Files.py

class FilesExtended(Files):
    def upload_file_from_binary(self, file_bytes: bytes, share_id: str, language: str, title: str) -> bool:

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