You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
before proceeding. It will help you get a grasp on how the bundle works, and why we use it.
10
10
11
+
**Note**: Uploading files won't work in `PUT` or `PATCH` requests, you must use `POST` method to upload files.
12
+
See [the related issue on Symfony](https://github.com/symfony/symfony/issues/9226) and [the related bug in PHP](https://bugs.php.net/bug.php?id=55815) talking about this behavior.
13
+
11
14
## Installing VichUploaderBundle
12
15
13
16
Install the bundle with the help of Composer:
@@ -43,9 +46,6 @@ resource (in our case: `Book`).
43
46
This example will use a custom controller to receive the file.
44
47
The second example will use a custom `multipart/form-data` decoder to deserialize the resource instead.
45
48
46
-
**Note**: Uploading files won't work in `PUT` or `PATCH` requests, you must use `POST` method to upload files.
47
-
See [the related issue on Symfony](https://github.com/symfony/symfony/issues/9226) and [the related bug in PHP](https://bugs.php.net/bug.php?id=55815) talking about this behavior.
48
-
49
49
### Configuring the Resource Receiving the Uploaded File
50
50
51
51
The `MediaObject` resource is implemented like this:
0 commit comments