forked from Public/pics
Upload photos to tag slug subdirectory.
This commit is contained in:
parent
e7e3a4368a
commit
67a182671f
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user