Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Jupi007 committed Oct 5, 2021
1 parent 12019f3 commit 3aee5bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ The way of working of this bundle is very simple. It provides a `DropzoneJsUploa

If the request is chunked, a temp file is created inside the system temp folder (using `sys_get_temp_dir()`) and the callback function is only called when the file is entirely uploaded.

I hightly recommend to use [VichUploaderBundle](https://github.com/dustin10/VichUploaderBundle) to handle the database saving.
I hightly recommend to use [VichUploaderBundle](https://github.com/dustin10/VichUploaderBundle) to handle the database saving side.

```php
<?php
Expand All @@ -67,9 +67,9 @@ use Jupi\DropzoneJsUploaderBundle\Service\DropzoneJsUploader;
class AppController extends AbstractController
{
/**
* @Route("/target", name="dropzone_file_send")
* @Route("/upload", name="upload")
*/
public function ajaxSnippetFileSendAction(DropzoneJsUploader $dropzoneUploader): Response
public function upload(DropzoneJsUploader $dropzoneUploader): Response
{
$dropzoneUploader->handleRequest(function (UploadedFile $file) {
$entity = new File(); // Assuming it is a correctly configured VichUploadable class
Expand Down

0 comments on commit 3aee5bf

Please sign in to comment.