I am working on PHP and making a script to upload video, I have set the max file size on php.ini to 20MB but still when I select a video of size more than 5MB, the form does not even get posted while it does with file size less than 5MB.
I updated these values in php.ini
post_max_size = 20M
upload_max_filesize = 500M
And below is my form :
<?php
if(isset($_POST['submit'])) {
echo "hello";
}
?>
<form method="post" enctype="multipart/form-data" action = "">
<input type="file" name = "file" data-max-size="100048">
<input type="submit" name = "submit">
</form>
Any help highly appreciated.