mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-03 18:04:08 +02:00
fix uploaded demo permissions
This commit is contained in:
parent
914eaccf82
commit
183b994f72
1 changed files with 1 additions and 0 deletions
|
|
@ -19,6 +19,7 @@ class DemoStore {
|
||||||
mkdir(dirname($target), 0777, true);
|
mkdir(dirname($target), 0777, true);
|
||||||
}
|
}
|
||||||
rename($sourcePath, $target);
|
rename($sourcePath, $target);
|
||||||
|
chmod($target, 0755);
|
||||||
return new StoredDemo($this->getUrl($name), 'static', $target);
|
return new StoredDemo($this->getUrl($name), 'static', $target);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue