Fix input dir permissions and adjust header logo

This commit is contained in:
hbrain 2026-05-26 06:44:25 +02:00
parent b18df3672c
commit fd042e244f
3 changed files with 2 additions and 1 deletions

View file

@ -101,6 +101,7 @@ try {
$slug = date('Ymd') . '_' . slugify($title);
$dir = $config['uploads_dir'] . '/' . $slug;
if (!mkdir($dir, 0775, true)) throw new RuntimeException('Cannot create input directory.');
chmod($dir, 02775);
$media = save_uploads('media', $dir, $allowedMedia);
if (!$media) { rrmdir($dir); throw new RuntimeException('Upload at least one image or video.'); }
save_uploads('audio', $dir, $allowedAudio);