Upload photos to tag slug subdirectory.

This commit is contained in:
Aaron van Geffen 2016-09-04 15:18:30 +02:00
parent e7e3a4368a
commit 67a182671f

View File

@ -36,6 +36,7 @@ class UploadMedia extends HTMLController
$asset = Asset::createNew([
'filename_to_copy' => $uploaded_file['tmp_name'],
'preferred_filename' => $uploaded_file['name'],
'preferred_subdir' => $tag->slug,
]);
$new_ids[] = $asset->getId();