Commit 13dbc942 authored by Nicolas Widart's avatar Nicolas Widart

Creating from the filename

parent 3c96e939
......@@ -20,7 +20,7 @@ class FileService
$savedFile = $this->file->createFromFile($file);
// Move the uploaded file to /public/assets/media/
$file->move(public_path() . '/assets/media', $savedFile->path);
$file->move(public_path() . '/assets/media', $savedFile->filename);
return $savedFile;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment