flowjs / flow-php-server

flow.js php server library, validates uploaded chunks and safely merges all chunks to a single file
http://flowjs.github.io/ng-flow/
MIT License
245 stars 42 forks source link

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

Open damienalexandre opened 9 years ago

damienalexandre commented 9 years ago

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 :)

    $fileArray    = [
        'name'     => $requestParams['flowFilename'],
        'type'     => '',
        'tmp_name' => 'php://input',
        'error'    => UPLOAD_ERR_OK,
        'size'     => $requestParams['flowCurrentChunkSize'],
    ];