Learn how to handle files in a PHP REST API. Please consider supporting my channel: ☕ https://ko-fi.com/davehollingworth 🌐 Recommended host: https://davehollingworth.com/hosting In this project-based tutorial, code along with the instructor to create a partial RESTful API to handle file uploads and file retrieval. This project uses the SLIM PHP Microframework. Source code: ‣ https://gist.github.com/daveh/432e34761148750cfc27d04030694591 Links shown in the video: ‣ https://www.slimframework.com/ ‣ https://www.php.net/manual/en/reserved.variables.files.php ‣ https://www.slimframework.com/docs/v4/objects/request.html#uploaded-files ‣ https://www.php.net/manual/en/features.file-upload.errors.php Related videos: ‣ Full Slim API tutorial: https://youtu.be/PHZtujcTRPk ‣ Composer: https://youtu.be/1eH43qVMCOU ‣ use statements: https://www.youtube.com/watch?v=E1eA2BRLb00 ‣ Handling files in PHP: https://youtu.be/K_W5ZqwEcqs 00:00 Introduction 00:28 Initial setup 02:42 Retrieving file data 04:43 Validation 06:32 Save the file 07:51 Get a file resource 09:12 Delete a file resource 10:12 Outro #PHP #api #rest