I have a simple form used for uploading a video file. The files seem to upload fine, but when I look into destination folder, it isn't there.
So, the problem is moving the uploaded file. Searching where the issue could be, I tried to catch the values of name and temp name of $_FILES and I discovered that the temp name wasn't set. So, in my PHP code:
$videoName = $_FILES['file']['name'];
$videoTempName = $_FILES['file']['tmp_name'];
$response['videoName'] = $videoName; // OK, it returns "video.mp4" which is the name of my example file.
$response['videoTempName'] = $videoTempName; // Here is my problem
echo json_encode($response);
An important thing that you should know is that I'm using WAMP Server in Windows 10. I suspect that the issue is about there because I've used the same code in remote servers without errors.