Prevent error “jqXHR.status === 0” in ajaxForm

Prevent error “jqXHR.status === 0” in ajaxForm

I   hope someone can help me

I'm using jQuery form (with its method "ajaxForm") to load documents into a form and get a progress bar.

It seems to work very well, however with files above +20 MB, in the middle of the load it is very common to receive an error: "jqXHR.status === 0", network problems.

At first I thought I had problems with my internet connection, but this never happens when I use a normal form (without jQuery form).

Any idea how to fix it?