Upped filesize limit

This commit is contained in:
2022-01-04 12:58:42 +03:00
parent 58e4ba4ec9
commit 2f18575f27

View File

@@ -1,5 +1,10 @@
<?php <?php
if (($_FILES['file']['name'] != "")) { if (($_FILES['file']['name'] != "")) {
// changing the upload limits
ini_set('upload_max_filesize', '4G');
ini_set('post_max_size', '4G');
ini_set('max_input_time', 1000);
ini_set('max_execution_time', 1000);
// Where the file is going to be stored // Where the file is going to be stored
$target_dir = "files/"; $target_dir = "files/";
$file = $_FILES['file']['name']; $file = $_FILES['file']['name'];