I have a local LAN server running on a Raspberry Pi (apache2) with PHP installed. I know that PHP is working, because I wrote a test file,
echo "Hello, World!" and it worked. But, whenever I upload a file on the same router to the server through a PHP script, it doesn't work. If I try to upload a file on the Raspberry Pi itself, it works fine.
F.Y.I, I'm trying to do this so I can then print the uploaded file (which is working fine on local files on the Raspberry Pi). Is this an issue with port forwarding or something? I am new to this whole area of computing (I am mainly a software developer). If it is a port forwarding problem, my router/modem is the Virgin Media Super Hub. In the apache2 server error log, it says that
$_FILES["file"]["tmp_name"] is not a file ("file" is the input name). For some reason, this happens as well on all the machines I've tested it on. But no problems on a file on the Raspberry Pi.