Coś tu nie działa i nie wiem czemu.
Wyskakuje :
Warning: POST Content-Length of 154513411 bytes exceeds the limit of 41943040 bytes in Unknown on line 0
Ktoś pomoże ?
<header>
<form action="upload.php" method="POST" enctype="multipart/form-data">
<input type="file" name="file">
<button type="submit" name="submit"> UPLOAD </button>
</header>
<?php
if (isset($_POST['submit']))
{
$file = $FILES['file']['name'];
$file_loc = $_FILES['file']['tmp_name'];
$file_folder="Pliki/";
if(move_uploaded_file($file_loc,$file_folder.$file))
{
?>
<script>alert('Success')</script>
<?php
}
else
{
?>
<script>alert('Something went wrong')</script>
<?php
}
}
?>