Expose the chunk index and number of chunks. Fixes #1501.
Expose the chunk index and number of chunks. Fixes #1501.

Example code to set request headers based on the chunk index and chunks
number:

$('#fileupload').fileupload({
    maxChunkSize: 100000,
    beforeSend: function (jqXHR, settings) {
        if (settings.chunksNumber) {
            jqXHR.setRequestHeader('X-Chunk-Index',
settings.chunkIndex);
            jqXHR.setRequestHeader('X-Chunks-Number',
settings.chunksNumber);
        }
    }
});

blueimp/jQuery-File-Upload,Verde1705/verde1705.github.io,GrizliK1988/PhotoWidget,Verde1705/verde1705.github.io,blueimp/jQuery-File-Upload,blueimp/jQuery-File-Upload,blueimp/jQuery-File-Upload,blueimp/jQuery-File-Upload,blueimp/jQuery-File-Upload