有关文件上传问题 请问如何用HttpWebRequest实现文件上传。先说明一下,我不想用FileUpload,<input type='file'...>之类的控件实现上传。请各位高手急救 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 如果只是不想让用户点击选择文件的话,可以考虑使用adodb.stream读取文件 + xmlhttp 实现上传,服务器端可以使用webservice来实现文件保存。 不想用FileUpload, <input type='file'...> 之类的控件实现上传=============================================================Flash上传文件(结合asp.net)http://www.cnblogs.com/yao/archive/2007/02/24/655190.html本还是觉得,这么作,很变态~~~ 很好,很麻烦这个问题在大附件上传的时候研究过,但是真的很麻烦。。最后还是选择用FTP上传工具了 搜索一下 .net大文件上传 有很多 如果你是想通过浏览器,唯一解决方法是自己写一个ActiveX或FF的插件,其它方法都不可行如果你想通过软件,方法就多了 HttpPostedFile PostedFile = Request.Files[i]; if (PostedFile.ContentLength > 0) { string _int; if (PostedFile.ContentLength / 1024 > 1024) { _int = PostedFile.ContentLength / 1024 / 1024 + " MB"; } else if (PostedFile.ContentLength / 1024 > 1024) { _int = PostedFile.ContentLength / 1024 + " KB"; } else { _int = PostedFile.ContentLength + "字节"; } finfo = finfo + "文件名称:" + PostedFile.FileName + "<br>"; finfo = finfo + "文件大小:" + _int + "<br>"; finfo = finfo + "文件类型:" + PostedFile.ContentType + "<br>"; string[] filesplit = PostedFile.FileName.Split('\\'); string Filename = filesplit[filesplit.Length - 1]; PostedFile.SaveAs(Server.MapPath("../images/ArticleImg/") +Filename);// } 楼上的方法不是我想要的,这个方法是会受浏览器IE的限制,好像默认是4MB,如果要上传更大文件,需要在web.confi 看看163的照片上传,使用ActiveX做的 FCKeditorV2在页面不显示__在线等 字体设置问题 今天出了个特不理解的现象,大家帮我看看怎么回事? asp.net自定义控件设计器的问题 VS2005环境菜鸟问题 问一个问题,关于word在线编辑器的问题 怎样在dropdownlist的每一项前加一个或多个空格 如何用.NET快速找到并活捉拉登?急~~~~~~~在线等待 为何会这么慢呢? 水晶報表的Chart可以動態生成嗎 ~~~技术性很强的问题 向CSDN中所有的高手请教!!!复杂的问题,大家都很少碰到的 技术性很强的问题!!!~~~^^^^^^^^^^^^^^^^^^^^^ 垂直搜索,哪位有经验,小弟虚心求教
=============================================================
Flash上传文件(结合asp.net)
http://www.cnblogs.com/yao/archive/2007/02/24/655190.html
本还是觉得,这么作,很变态~~~
这个问题在大附件上传的时候研究过,但是真的很麻烦。。
最后还是选择用FTP上传工具了
if (PostedFile.ContentLength > 0)
{
string _int;
if (PostedFile.ContentLength / 1024 > 1024)
{
_int = PostedFile.ContentLength / 1024 / 1024 + " MB";
}
else if (PostedFile.ContentLength / 1024 > 1024)
{
_int = PostedFile.ContentLength / 1024 + " KB";
}
else
{
_int = PostedFile.ContentLength + "字节";
}
finfo = finfo + "文件名称:" + PostedFile.FileName + "<br>";
finfo = finfo + "文件大小:" + _int + "<br>";
finfo = finfo + "文件类型:" + PostedFile.ContentType + "<br>";
string[] filesplit = PostedFile.FileName.Split('\\');
string Filename = filesplit[filesplit.Length - 1];
PostedFile.SaveAs(Server.MapPath("../images/ArticleImg/") +Filename);//
}