Home >Web Front-end >JS Tutorial >How to identify images detected before uploading is a valid method_Form Effects
Look at this!
If the image data is correct, you can get the height and width
But if you randomly select other non-web image files, you can’t get the height and width
You need to determine whether the current selected file is an image. ?