Maybe I have asked this in an earlier thread, if so my apologises.
I like to send the images made with the ESP32-cam via wifi to a Harddisk on my local computer on the same wifi network.
I have tried to use the example on the RNT page ESP32-CAM HTTP POST Photos to Server (PHP and Arduino IDE) | Random Nerd Tutorials and changed in the ESP32-CAM code the line:
String serverName = “192.168.2.2”; // REPLACE WITH YOUR Raspberry Pi IP ADDRESS, the IP address of my local computer in my wifi network (I have checked that ip address first)
I have also created a map /uploads on my HDD G:/uploads. In that /uploads subdir I pasted the upload.php and gallery.php files.
Finally I changed in the ESP32-CAM code the line:
String serverPath = “G:/uploads/upload.php”; // The default serverPath should be upload.php
But the connection with my local pc failed.
Something goes wrong somewhere.
Any help is welcome.
Hello! That’s not the correct serverPath.
Can you open the following URL in your browser?
Unfortunately I can not open that URL.
I have also tried another URL of a connected laptop which I can see when I am logged on in my modem, without succes.
Another URL I see in the modem is the URL of the ESP32-CAM module. Also that URL does deliver the message Unreadable.
I have the feeling that I do not understand what you mean with the terms server and Domain name.
Are the credentials, specified in this sketch sufficient to save pictures on the HDD of the pc with 192.168.2.x etc. as the URL?
When I read Domain name, then I think that is for example http://www.domainname.nl?
If so then I can imagine that the sketch has unsufficient privileges to add pictures in the gallery.php file?
It’s a bit hard to understand exactly what might be happening, did you follow the exact instructions on this page?
Which option did you follow?
1. Raspberry Pi local server:
2. Cloud server (Bluehost hosting solution)