$.ajax

$.ajax

Hi guys,

I am somehow stuck a little.
I am sending a base64_encoded picture to my server using jQuery.ajax. On the server, I decode the data and write it into a file.
Actually there are times when it works very smoothly. The file is written without any problems at all.
But sometimes the server does not get the data from the ajax. I already set the timeout of the ajax to 99999999999999 and tried to set the timeout of the php  to 99999.

Do you have any ideas, why it works sometime and sometime doesn't?

Thanks in advance