filmov
tv
PHP Symfony API Platform Custom File Upload - Handle uploading a file the easy way without packages

Показать описание
In this video I will be using Symfony with API Platform to make an endpoint which accepts parameters and a file upload. I will start by creating a simple API Platform class with a custom Action Controller within an empty Symfony Skeleton project. Then I will handle the file upload parameter and the other fields within this resource object.
If you want to skip the scaffold in the beginning jump to 02:32.
Chapters:
0:00 Intro
0:20 Scaffold resource
2:36 File upload request file
4:11 Test request to controller
4:51 Handle request parameters
6:39 Test uploading real file
8:06 Closing words
If you want to skip the scaffold in the beginning jump to 02:32.
Chapters:
0:00 Intro
0:20 Scaffold resource
2:36 File upload request file
4:11 Test request to controller
4:51 Handle request parameters
6:39 Test uploading real file
8:06 Closing words