But wait ..!!! If you look at the fetch function you see that the form.action is really not defined in neither the html form istself or in a variable.... It would return a 404 bug.. also a undefined error
Backend server(local server) should have the post method. That method process it & sending response. If the server doesn't have that method, its sending 404 Not Found.
1st comment. Nice video, thnx dude! :)
Sick! Thank you so much for taking the time. I'm glad you liked it.
Where is the data uploaded to on the server? Why do you not have to set a target directory for the uploaded file?
But wait ..!!! If you look at the fetch function you see that the form.action is really not defined in neither the html form istself or in a variable.... It would return a 404 bug.. also a undefined error
With the same code as the end of the video, i have an 404 error with fetch, if anybody maybe knows why ?
Backend server(local server) should have the post method. That method process it & sending response. If the server doesn't have that method, its sending 404 Not Found.