|
1 |
| -# Handling File Upload |
2 |
| - |
3 |
| -As common a problem as it may seem, handling file upload requires a custom |
4 |
| -implementation in your app. This page will guide you in handling file upload in |
5 |
| -your API, with the help of |
6 |
| -[VichUploaderBundle](https://github.com/dustin10/VichUploaderBundle). It is |
7 |
| -recommended you [read the documentation of |
8 |
| -VichUploaderBundle](https://github.com/dustin10/VichUploaderBundle/blob/master/docs/index.md) |
| 1 | +# Handling File Upload with Symfony |
| 2 | + |
| 3 | +As common a problem as it may seem, handling file upload requires a custom implementation in your app. This page will |
| 4 | +guide you in handling file upload in your API, with the help of[VichUploaderBundle](https://github.com/dustin10/VichUploaderBundle). |
| 5 | +It is recommended you [read the documentation of VichUploaderBundle](https://github.com/dustin10/VichUploaderBundle/blob/master/docs/index.md) |
9 | 6 | before proceeding. It will help you get a grasp on how the bundle works, and why we use it.
|
10 | 7 |
|
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. |
| 8 | +> [!NOTE] |
| 9 | +> Uploading files won't work in `PUT` or `PATCH` requests, you must use `POST` method to upload files. |
| 10 | +> See [the related issue on Symfony](https://github.com/symfony/symfony/issues/9226) and |
| 11 | +> [the related bug in PHP](https://bugs.php.net/bug.php?id=55815) talking about this behavior. |
13 | 12 |
|
14 | 13 | Enable the multipart format globally in order to use it as the input format of your resource:
|
15 | 14 |
|
@@ -137,7 +136,7 @@ Note: From V3.3 onwards, `'multipart/form-data'` must either be including in the
|
137 | 136 | Returning the plain file path on the filesystem where the file is stored is not useful for the client, which needs a
|
138 | 137 | URL to work with.
|
139 | 138 |
|
140 |
| -A [normalizer](serialization.md#normalization) could be used to set the `contentUrl` property: |
| 139 | +A [normalizer](../core/serialization.md#normalization) could be used to set the `contentUrl` property: |
141 | 140 |
|
142 | 141 | ```php
|
143 | 142 | <?php
|
|
0 commit comments