The file tag where I have declared that only PNG/JPEG files are allowed.
And according to React Dev Tools it is just working fine meant that the file get added successfully.
But when I tried to add file with other extensions other than PNG/JPEG the files are not get added but in the frontend I can see the name of the file.
According to React Dev Tools, File is not get added.
I just wanted, not display the name of the invalidate files like (.pdf, .mp3, etc).
In the Frontend I just wanted to see No File Chosen in place of the Invalidate File name.