0
Я хочу загрузить файл через kendoupload и получить файл с помощью webservice. Мой файл может быть довольно большим файлом. Вот мой ASPX:Загрузка файла через Kendo, Webservice
<input type="file" name="File1" id="File1" />
<input type="submit" value="Submit" class ="k-button" onclick="beginUpload()"/>
Вот мой JavaScript:
function beginUpload()
{
$("#File1").kendoUpload({
async: {
saveUrl: 'GetFile.asmx/ReceiveFile',
autoUpload: true
},
multiple: false
});
}
Наконец вот моя вебсервис:
[WebMethod]
public string ReceiveFile(string s)
{
return "Hello World!";
}