add smallfileupload
parent
6dc5d60649
commit
134e9c29cf
|
@ -355,3 +355,9 @@ function WaitFunction() {
|
|||
function changeAuthKey() {
|
||||
return message("Not need.", 'Change platform Auth token or key', 404);
|
||||
}
|
||||
|
||||
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']);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue