Skip to content

Streaming large files #57

@g105b

Description

@g105b

Recently in a WebEngine project I've had to work with the uploading of seriously large files.

Allowing POST input larger than a gigabyte seems massively excessive, and has to be done on the php.ini level so can't be controlled per-script.

The solution was to use a PUT request, then fopen("php://input", "r") to deal with the incoming data.

Could this be handled automatically by Input? The FileInput object could expose a getStream method that works under POST and PUT requests, but with PUT the file wouldn't automatically be loaded into memory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNon-breaking improvements to existing behaviour

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions