Skip to content

Add support for flow.js "octet" method #23

@damienalexandre

Description

@damienalexandre

The PHP server only support the default multipart option, and not the octet one.

This should be added to the documentation right now,
and maybe added to the library as contributions go :)

  • the Request must fake an upload array:
    $fileArray    = [
        'name'     => $requestParams['flowFilename'],
        'type'     => '',
        'tmp_name' => 'php://input',
        'error'    => UPLOAD_ERR_OK,
        'size'     => $requestParams['flowCurrentChunkSize'],
    ];
  • the File::_move_uploaded_file method must not use move_uploaded_file but instead read 'php://input' and file_put_contents it

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