Let's Learn AdonisJS 6: Ep 11.7 - Using A Wildcard Route Param to Download Storage Images

Published: 10 July 2024
on channel: Adocasts
129
6

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


Watch video Let's Learn AdonisJS 6: Ep 11.7 - Using A Wildcard Route Param to Download Storage Images online without registration, duration hours minute second in high quality. This video was added by user Adocasts 10 July 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 12 once and liked it people.