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
Copy file name to clipboardExpand all lines: core/file-upload.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,9 @@ resource (in our case: `Book`).
42
42
This example will use a custom controller to receive the file.
43
43
The second example will use a custom `multipart/form-data` decoder to deserialize the resource instead.
44
44
45
+
**Note**: Uploading files won't work in `PUT` or `PATCH` requests, you must use `POST` method to upload files.
46
+
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.
47
+
45
48
### Configuring the Resource Receiving the Uploaded File
46
49
47
50
The `MediaObject` resource is implemented like this:
0 commit comments