I'm using AJAX to download patches for my NW.js exported project.
When downloading an update via AJAX, I'd like to give the user feedback on how far the download is, not only by the overall progress, but also by how much of the filesize has been already downloaded (X MB of Y MB).
Since my patches' size isn't static, but varies with each release, I can't use a static number.
So, the question is: is there any AJAX-built in possibility to get the size of the requested file?
If there isn't one, I guess I'll have to set a server-sided key with the release's size.
Thanks for any answer!