mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 21:24:13 -08:00
Fixed slug call in asset models image
This commit is contained in:
parent
3343cf16dd
commit
f43692938b
|
@ -90,7 +90,7 @@ class AssetModelsController extends Controller
|
|||
if (Input::file('image')) {
|
||||
|
||||
$image = Input::file('image');
|
||||
$file_name = slug($image->getClientOriginalName()) . "." . $image->getClientOriginalExtension();
|
||||
$file_name = str_slug($image->getClientOriginalName()) . "." . $image->getClientOriginalExtension();
|
||||
$path = public_path('uploads/models/');
|
||||
|
||||
if ($image->getClientOriginalExtension()!='svg') {
|
||||
|
|
Loading…
Reference in a new issue