public function uploadsnapshot(\SS_HTTPRequest $request)
{
$this->setCurrentActionType(self::ACTION_SNAPSHOT);
// Performs canView permission check by limiting visible projects
$project = $this->getCurrentProject();
if (!$project) {
return $this->project404Response();
}
if (!$project->canUploadArchive()) {
return new SS_HTTPResponse("Not allowed to upload", 401);
}
return $this->customise(['SnapshotsSection' => 1, 'UploadSnapshotForm' => $this->getUploadSnapshotForm($request), 'PostSnapshotForm' => $this->getPostSnapshotForm($request)])->render();
}