Learn how to use wildcard route params to download images
👍 If You Enjoy This Video, Consider Hitting The Like Button!
👨💻 Series Source Code: https://github.com/adocasts/lets-lear...
🥁 Subscribe To Stay Notified For New Videos: https://www.youtube.com/adocasts?sub_...
Subscribe to Adocasts Plus to gain access to all our lessons and more!
https://adocasts.com/pricing
In this lesson, we'll learn how we can utilize a wildcard route parameter to dynamically download images that've been uploaded and stored within our application storage.
📜 Documentation Referenced
https://docs.adonisjs.com/guides/basi...
⏰ Timestamps
00:00 - Refactoring Our Avatars Route as a Generic Storage Route
02:05 - Inspecting Wildcard Route Parameters
03:00 - Getting Requested Image File Path
03:25 - Reviewing the File Upload Documentation
04:30 - Normalizing and Testing the File Path Validity
05:38 - Downloading the Requested Image
06:02 - Accessing Our Images
07:06 - Testing Our Storage Download Route
------------------------- Socials --------------------------
Website: https://adocasts.com
Threads: https://threads.net/@adocasts
Twitter: / adocasts
GitHub: https://github.com/adocasts