Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
damienalexandre opened this issue Jun 29, 2015 · 0 comments
Open

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

damienalexandre opened this issue Jun 29, 2015 · 0 comments

Comments

@damienalexandre
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant