I have an ajax POST request that can take anywhere between 2 seconds to 30+ minutes. The post request occurs as a result of button click
If the request takes less th
can take anywhere between 2 seconds to 30+ minutes
I assume this is because of large amount of data to transfer.
I have creating large file uploader, that handles 20GB+ video files and may last for several hours.
In my experience - uploading large data with single ajax request can cause strange browser crashes (for example my Chrome browser crashes in about 20% of upload tests).
The most reliable way, what I found, is to split data in chunks of 1MB and send them sequentially to the server by separate ajax requests.