I'm trying to upload a 500 MB file in codeigniter. My website is hosted on IIS7. I have already increased maxAllowedContentLength in my web.config file. I have also increased upload_max_filesize and post_max_size in php.ini
When I try to upload a file less than 10 MB then its working fine but when I try to upload a file size more than 100 MB then its not working fine here is my code
if( ! empty($_FILES['filename']['name'])){
do some action
}
else{
do other things
}
html form `
<div class="par control-group">
<label class="control-label" for="firstname">Upload New CSV</label>
<div class="controls"><input type="file" name="filename" id="filename" class="required input-large" style="width: 50%;"></div>
</div>
<input name="umar" type="hidden" value="1">
<p class="stdformbutton">
<button class="btn btn-primary">Save</button>
</p>
</form>`
when file is less than 10 MB then if part run but when I try to upload a file more than 100 MB then else part is running. Don't know why. I have checked input file value buts its empty.