diff options
author | zotlabs <mike@macgirvin.com> | 2017-11-30 19:06:00 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-11-30 19:06:00 -0800 |
commit | 19ec8488e09bcff3a7ef6e9d2abbe4b0c213b3f8 (patch) | |
tree | aba909fa56e2875deb4a25542c97eb490ab3e4fd /Zotlabs/Module/File_upload.php | |
parent | fc5b6887168a25992fb089ed7da7ac917e7aaf6b (diff) | |
parent | 0e8e0b48b3fd6f4d6d0dd60039743371930af08d (diff) | |
download | volse-hubzilla-19ec8488e09bcff3a7ef6e9d2abbe4b0c213b3f8.tar.gz volse-hubzilla-19ec8488e09bcff3a7ef6e9d2abbe4b0c213b3f8.tar.bz2 volse-hubzilla-19ec8488e09bcff3a7ef6e9d2abbe4b0c213b3f8.zip |
Merge branch 'chunk'
Diffstat (limited to 'Zotlabs/Module/File_upload.php')
-rw-r--r-- | Zotlabs/Module/File_upload.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Zotlabs/Module/File_upload.php b/Zotlabs/Module/File_upload.php index 296dab708..90761fa9c 100644 --- a/Zotlabs/Module/File_upload.php +++ b/Zotlabs/Module/File_upload.php @@ -10,7 +10,8 @@ class File_upload extends \Zotlabs\Web\Controller { function post() { - // logger('file upload: ' . print_r($_REQUEST,true)); + logger('file upload: ' . print_r($_REQUEST,true)); + logger('file upload: ' . print_r($_FILES,true)); $channel = (($_REQUEST['channick']) ? channelx_by_nick($_REQUEST['channick']) : null); @@ -56,13 +57,15 @@ class File_upload extends \Zotlabs\Web\Controller { if(array_key_exists('HTTP_CONTENT_RANGE',$_SERVER)) { $pm = preg_match('/bytes (\d*)\-(\d*)\/(\d*)/',$_SERVER['HTTP_CONTENT_RANGE'],$matches); if($pm) { - // logger('Content-Range: ' . print_r($matches,true)); + logger('Content-Range: ' . print_r($matches,true)); $partial = true; } } 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); |