Skip to content

Commit c9adccd

Browse files
authored
fix(file-upload): note about PUT/PATCH higher (#1725)
1 parent 3d523ec commit c9adccd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/file-upload.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ recommended you [read the documentation of
88
VichUploaderBundle](https://github.com/dustin10/VichUploaderBundle/blob/master/docs/index.md)
99
before proceeding. It will help you get a grasp on how the bundle works, and why we use it.
1010

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+
1114
## Installing VichUploaderBundle
1215

1316
Install the bundle with the help of Composer:
@@ -43,9 +46,6 @@ resource (in our case: `Book`).
4346
This example will use a custom controller to receive the file.
4447
The second example will use a custom `multipart/form-data` decoder to deserialize the resource instead.
4548

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-
4949
### Configuring the Resource Receiving the Uploaded File
5050

5151
The `MediaObject` resource is implemented like this:

0 commit comments

Comments
 (0)