I try to upload a file using PHP, when the file is not big enough everything goes well, but when the file reaches a little 15Mo I have an error message that appears ! Here is some of the code used for the upload
<form action="upload.php" method="post" enctype="multipart/form-data">
<div class="form-group">
<div class="btn btn-default btn-file">
<i class="fa fa-paperclip"></i> Attachment
<input type="file" name="fileToUpload" id="fileToUpload">
</div>
This is where I have the problem:
$target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]);