Skip to content
Advertisement

.send(formData) Error “GET 404 …/upload.php (Not Found)”

i’ve found this code on a website for uploading files using javascript, but it doesn’t seems to work. Could somebody help me with that please?

Index.php :

JavaScript

And js :

JavaScript

and upload.php :

JavaScript

And now this issue :

GET …/upload.php 404 (Not Found)

and related code to issue :

JavaScript

btw what is that “GET” showing in console??

Advertisement

Answer

I just saved the file “Upload.php” with uppercase “U” which should be “upload.php”.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement