mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-03 18:04:08 +02:00
prepare for private demos
This commit is contained in:
parent
1fef02679a
commit
4f07dbbf34
13 changed files with 131 additions and 25 deletions
|
|
@ -28,7 +28,8 @@ class UploadController extends BaseController {
|
|||
return;
|
||||
}
|
||||
$demoFile = $demo['tmp_name'];
|
||||
$private = $this->post('private', '0') === '1';
|
||||
|
||||
echo $this->uploadProvider->upload($key, $red, $blu, $name, $demoFile);
|
||||
echo $this->uploadProvider->upload($key, $red, $blu, $name, $demoFile, $private);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue