3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-05-05 06:05:20 +00:00

Fixes for #8732 - Flysystem paths, migrator script

This commit is contained in:
snipe
2020-11-12 21:46:06 -08:00
parent c7d752fb65
commit 9db191f0b2
3 changed files with 29 additions and 28 deletions

View File

@ -49,7 +49,8 @@ class ImageUploadRequest extends Request
$type = strtolower(class_basename(get_class($item)));
if (is_null($path)) {
$path = str_plural($type);
$path = 'uploads/';
$path .= str_plural($type);
if ($type == 'assetmodel') {
$path = 'models';