Skip to content

create file from ReadableStream #20

Description

@andykais

allow streams to be passed into forager.media.create() rather than a filepath. This lets us stream directly from a scraper to the db, without duplicating data into the filesystem. Inside a transaction we would push the chunks into the db, and calculate the sha256checksum on the fly. If the file with that checksum already exists, then we ROLLBACK the transaction.

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