Skip to content

Commit 63a2fc8

Browse files
authored
Merge pull request api-platform#981 from jaapjan/patch-1
Prevent uploaded files from being overwritten
2 parents ff39587 + 556fe43 commit 63a2fc8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/file-upload.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ vich_uploader:
2626
media_object:
2727
uri_prefix: /media
2828
upload_destination: '%kernel.project_dir%/public/media'
29+
# Will rename uploaded files using a uniqueid as a prefix.
30+
namer: Vich\UploaderBundle\Naming\OrignameNamer
2931
```
3032
3133
## Configuring the Entity Receiving the Uploaded File

0 commit comments

Comments
 (0)