I am trying to submit image onChange. However when I am trying to do it, server is saying that "file" is equal to null. Everything worked when I was sending image form submit. React
Asked
Active
Viewed 16 times
0
-
Add code as text. And please paste entire error message. – Konrad Aug 17 '22 at 18:38
-
No offense, but I've never seen a worse example usage of useEffect than that in your code. What you're trying to achieve with it can be easily done with React event handlers. – niceman Aug 17 '22 at 18:41