file reader is a stream. You can access that file in the browser with the file reader api, right? Um, but you can also just Take that input grab the the file that you want So there's a dot files property on inputs that are type of file And then just call the dot stream method on it and that will Start to stream that file in from your user's computer into the browser. That's really handy if you want to Crop or resize a file but without having to send it someone might upload a 20 meg File right from their their phone. It's kind of a lot of bandwidth send that to your server just to resize it so you can stream it into the browser
In this Hasty Treat, Scott and Wes explain the what, why, and how of web streaming, and some of the jargon you might encounter with web streams.
Sentry - Sponsor
If you want to know what’s happening with your code, track errors and monitor performance with Sentry. Sentry’s Application Monitoring platform helps developers see performance issues, fix errors faster, and optimize their code health. Cut your time on error resolution from hours to minutes. It works with any language and integrates with dozens of other services. Syntax listeners new to Sentry can get two months for free by visiting Sentry.io and using the coupon code TASTYTREAT during sign up.
Show Notes
Tweet us your tasty treats