在安装cute editor下, 用asp.net传送大文件

 

代码
// 页面代码
< CE:Uploader ID = " Uploader1 "  runat = " server "  OnFileUploaded = " Uploader1_FileUploaded "  OnUploadCompleted = " Uploader1_UploadCompleted "  TempDirectory = " ~/uploads "   >
  
</ CE:Uploader >
// C#代码
  protected   void  Uploader1_FileUploaded( object  sender, CuteEditor.UploaderEventArgs args)
    {
        args.CopyTo(Server.MapPath(
" ~/uploads " ) + " \\ "   +  args.FileName);
    }

 

 

正好项目里用的cute editor 就用这个来上传大文件了

用的CuteEditor 6.6

你可能感兴趣的:(asp.net)