我想通过kendoupload上传一个文件,并通过webservice接收该文件。我的文件可能相当大。这是我的aspx:
<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!";
}
不支持将文件上传到ASMX(Kendo UI不支持,但通常支持)。