diff --git a/platform/Heroku.php b/platform/Heroku.php index b8887b3..fe0fc4e 100644 --- a/platform/Heroku.php +++ b/platform/Heroku.php @@ -415,3 +415,9 @@ function changeAuthKey() { '; return message($html, 'Change platform Auth token or key', 200); } + +function smallfileupload($drive, $path) { + if ($_FILES['file1']['error']) return output($_FILES['file1']['error'], 400); + if ($_FILES['file1']['size']>4*1024*1024) return output('File too large', 400); + return $drive->smallfileupload($path, $_FILES['file1']); +}