Displaying files attached to a book.

This commit is contained in:
krzysiej
2022-05-23 15:35:24 +02:00
parent dddd432e3b
commit 319f6311fc
3 changed files with 53 additions and 26 deletions

View File

@@ -44,7 +44,6 @@ class BookController extends AbstractController
$ebook = $request->files->get('book')['ebook'];
if ($ebook) {
dd($ebook);
$ebook->move(
$this->getParameter('book_files'),
'ebook_' . $book->getId() . '.' . $ebook->guessClientExtension()