more or less working chunked uploads on /cloud now.

This commit is contained in:
zotlabs
2017-11-30 19:05:24 -08:00
parent cc0d53e695
commit 0e8e0b48b3
3 changed files with 28 additions and 38 deletions

View File

@@ -64,6 +64,8 @@ class File_upload extends \Zotlabs\Web\Controller {
if($partial) {
$x = save_chunk($channel,$matches[1],$matches[2],$matches[3]);
logger('save_chunk: ' . print_r($x,true));
if($x['partial']) {
header('Range: bytes=0-' . (($x['length']) ? $x['length'] - 1 : 0));
json_return_and_die($result);