文件下载大小问题
我写的下载程序:
Dim strFileName As String =“2.txt”
Dim strFilePath As String =”d:\2.txt”
Response.ContentType = "Application/x-msexcel"
Response.AppendHeader("Content-Disposition", "attachment; filename=" + HttpUtility.UrlEncode(strFileName, System.Text.ASCIIEncoding.UTF8.Default))
Response.WriteFile(strFilePath)
Response.End()
结果ADSL用户不能下载大于2M的文件。请问各位大哥,应该怎样写,并告知能下载多大的文件,小弟先谢谢了。