Image Previews in React with FileReader

Published: 29 October 2020
on channel: Leigh Halliday
27,408
899

In this video we work with file inputs and native javascript classes such as File and FileReader to display a preview of the image prior to uploading it to any external server. We'll also limit file selection to images only using mime types. We'll be using TypeScript in this video.

---------- Links

Source Code - https://github.com/leighhalliday/imag...
Starting Point - https://github.com/leighhalliday/imag...

---------- Connect

Join this channel -    / @leighhalliday  
Join me on Discord -   / discord  

---------- Timeline

00:00 - Introduction
01:00 - Creating a File Input
03:40 - Storing File in State
05:20 - Limiting Images with Mime Types
06:40 - Previewing Image with FileReader
10:50 - Object Fit Cover


Watch video Image Previews in React with FileReader online without registration, duration hours minute second in high quality. This video was added by user Leigh Halliday 29 October 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 27,40 once and liked it 89 people.