Jquery.form.js SSL error using 1 MB files.
* version: 3.14 (30-JUL-2012)
* @requires jQuery v1.3.2 or later
Im using this version and trying to communicate with fileupload. (SSL didnt make a difference on junit testing)
Now is the problem that im using this for PDF files, or normal files bigger as 1 Mb.
The file would simply not be uploaded. and a errorstate 0 would come up just saying nothing has happened.
Using: Firefox 14.0 (User on linux tried same with same browser got it working).
function upload_files()
{
var bar = $('.bar');
var percent = $('.percent');
var status = $('#status');
$('#form').ajaxForm({
beforeSend: function() {
status.empty();
var percentVal = '0%';
bar.width(percentVal)
percent.html(percentVal);
},
uploadProgress: function(event, position, total, percentComplete) {
var percentVal = percentComplete + '%';
bar.width(percentVal)
percent.html(percentVal);
},
complete:
function(xhr) {
var percentVal = '100%';
bar.width(percentVal);
percent.html(percentVal);
status.html(xhr.responseText);
},
error: function(xhr, desc, err) {
console.debug(xhr);
console.log("Desc: " + desc + "\nErr:" + err);
}
});
}
Result:
Object { readyState=0, status=0, statusText="error"}
and no file has been uploaded.
Checked file upload limits:
$max_upload = (int)(ini_get(upload_max_filesize));
$max_post = (int)(ini_get(post_max_size));
$max_memory = (int)(ini_get(memory_limit));
$file_limit = min($max_upload, $max_post, $max_memory);
$total_limit = min($max_post, $max_memory);
echo "‘upload_max_filesize’".$max_upload."<br/>";
echo "‘post_max_size’".$max_post."<br/>";
echo "‘memory_limit’".$max_memory."<br/>";
echo "file_limit".$file_limit."<br/>";
echo "Totaal limiet".$total_limit."<br/>";
Seemed all to be fine.
upload_max_filesize150MB
post_max_size 150MB
memory_limit 128MB
file_limit 128MB
Totaal limiet 128MB
Couldn't find the reason why the file did not upload.
Small files show completed.
After running the Junit Test I got errors:
https://www.clickenweb.nl/test/index.html