How to track a file change in input?

  • 0
    In a React application, you need to track any file upload to input. Whether it's the same file as the previous one, or a new one
    Tried onChange and onInput but none of them work correctly
    JavaScript Anonymous, Nov 24, 2019

  • 1 Answers
  • 0
    You can track files in the input through a file reader. it has events like onload, onerror, etc.
    Amelia Pennington

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!