I get 414 (Request-Uri Too Long) error for the following ajax call on Azure.
$.ajax({
url: "/Test/TestView",
type:"POST",
data: JSON.stringify(
{
source : 'test',
FileInfo: FileInfo
}),
contentType: "application/json; charset=utf-8",
proccessData: false,
cache: false
}).done(function (data) {
$('#body').html(data);
});
Where FileInfo is array of URL and filename for the file on the server.
Example of FileInfo data:
[{name : "test1",
NOTE: this works on locahost the only difference is that the filepath within the FileInfo array is path of directory "C:\\ProgramData\\Test\\Test.data"
I tried adding enctype: "multipart/form-data" it did not work either.
Please advise. Thanks in advance!
There is a typo in your code. This may cause the issue.
Please change proccessData
to processData
. More details, see jQuery.ajax() .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.