Hello, I use this code to increase the progress bar:
$(function()
{
var bar = $('.bar');
var percent = $('.percent');
var status = $('#status');
var upload = $('form').ajaxForm(
{
beforeSend: function()
{
status.empty();
},
uploadProgress: function(event, position, total, percentComplete)
{
document.getElementById("progressBarCurrentFile").style.display = 'block';
var total_perc = total | 0;
var current_perc = position | 0;
document.getElementById("progbarFile").innerHTML = Math.floor((current_perc / (total_perc / 100)) * 100) / 100 + '%';
document.getElementById("progbarFile").style.width = current_perc / (total_perc / 100) + '%';
},
complete: function(xhr)
{
location.href = 'home';
}
});
});
The problem is that when the file is larger than 2GB
it starts counting negative.
Even putting pho.ini post_max_size = 9999999M
and upload_max_filesize = 9999999M