1
0
Fork 0
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:
Robin Appelman 2025-04-01 22:49:04 +02:00
commit 4f07dbbf34
13 changed files with 131 additions and 25 deletions

View file

@ -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);
}
}