I've troubles uploading a file bigger then 500MB on Apache/PHP server on my local machine.
I've tried with php.ini configuration, .htaccess, ecc.
But i can't solve the problem.

On my phpInfo the variables are currently set like this:

```
upload_max_filesize 2048M
post_max_size   2048M
memory_limit    1024M

```

What should i change? I'm running xampp 3.2.2 on win7 (same problem on win10).

Apache Version Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30

Thanks!

------ update: here's more detailed errors:

```
Warning: POST Content-Length of 941609661 bytes exceeds the limit of 524288000 bytes in Unknown on line 0
Notice: Undefined index: page_selector in C:\xampp\htdocs\upload_file.php on line 6
Notice: Undefined index: nome_video in C:\xampp\htdocs\upload_file.php on line 7
Notice: Undefined index: file in C:\xampp\htdocs\upload_file.php on line 8
Notice: Undefined index: file in C:\xampp\htdocs\upload_file.php on line 31
Notice: Undefined index: file in C:\xampp\htdocs\upload_file.php on line 33
Notice: Undefined index: file in C:\xampp\htdocs\upload_file.php on line 34
Notice: Undefined index: file in C:\xampp\htdocs\upload_file.php on line 35
Notice: Undefined index: file in C:\xampp\htdocs\upload_file.php on line 36
Notice: Undefined index: file in C:\xampp\htdocs\upload_file.php on line 37
Notice: Undefined index: file in C:\xampp\htdocs\upload_file.php on line 38

```

where the reported lines are: 

```
$page = $_POST["page_selector"];
$nome_video = $_POST["nome_video"];
$label = $_FILES["file"]["name"];
$extension   = pathinfo($_FILES['file']['name'], PATHINFO_EXTENSION);
if ((($_FILES["file"]["type"] == "video/mp4")
|| ($_FILES["file"]["type"] == "audio/mp3")
|| ($_FILES["file"]["type"] == "audio/wma")
|| ($_FILES["file"]["type"] == "image/pjpeg")
|| ($_FILES["file"]["type"] == "image/gif")
|| ($_FILES["file"]["type"] == "image/jpeg"))

```