Dear Sirs.
Plese help me again on HttpPost
I have AJAX Call
fileChunk = new FormData();
fileChunk.append('fileSlice', uploader.file.slice(start, end));
posturl = '/MyController/UploadBlock/' + incrimentalIdentifier;
jqxhr = $.ajax({
async: true,
url: posturl,
data: fileChunk,
cache: false,
contentType: false,
processData: false,
dataType: 'json',
type: 'POST',
error: function (request, error) {...},
success: function (notice) { ... }
});
----------
And Controller Method
[HttpPost("{id:int}")]
public async Task<IActionResult> UploadBlock([FromRoute] int id)
...
But Call does not gos to my Method I have 404 error
Please help me to fix issue