Fix input dir permissions and adjust header logo
This commit is contained in:
parent
b18df3672c
commit
fd042e244f
3 changed files with 2 additions and 1 deletions
Binary file not shown.
|
Before Width: | Height: | Size: 1.8 MiB After Width: | Height: | Size: 1.7 MiB |
1
new.php
1
new.php
|
|
@ -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);
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue