• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

How to upload image from esp32-cam via wifi to local hard disk

Q&A Forum › How to upload image from esp32-cam via wifi to local hard disk
0 Vote Up Vote Down
Kees_01 asked 2 years ago

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.

Question Tags: ESP32-Cam, local HDD, upload
3 Answers
0 Vote Up Vote Down
Rui Santos Staff answered 2 years ago

Hello! That’s not the correct serverPath.
Can you open the following URL in your browser?

  • http://192.168.2.2/upload.php
0 Vote Up Vote Down
Kees_01 answered 2 years ago

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?

0 Vote Up Vote Down
Rui Santos Staff answered 2 years ago

It’s a bit hard to understand exactly what might be happening, did you follow the exact instructions on this page?

  • https://randomnerdtutorials.com/esp32-cam-http-post-php-arduino/

Which option did you follow?
1. Raspberry Pi local server:
2. Cloud server (Bluehost hosting solution)

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.