<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                C#示例參考: ```C# //文件名稱:upload_cross_domain.ashx <%@ WebHandler Language="C#" Class="data" %> using System; using System.Web; using System.IO; public class data : IHttpHandler { public void ProcessRequest (HttpContext context) { //設置文件類型和編碼類型 context.Response.ContentType = "text/html"; context.Response.Charset = "utf-8"; //獲取web前端 wangEditor_uploadImg_assist.html 頁面的url地址 string assistUrl = "http://localhost:8080/wangEditor_uploadImg_assist.html"; //取得文件對象 HttpPostedFile file = context.Request.Files[0]; //HttpPostedFile file = context.Request.Files["wangEditor_uploadImg"]; if (file == null) { string iframeSrc = assistUrl + "#" + "未成功獲取文件,上傳失敗"; string result = "<iframe src=\"" + iframeSrc + "\"></iframe>"; context.Response.Write(result); context.Response.End(); return; } else { //驗證通過了,最后保存文件 string path = context.Server.MapPath("~/uploadedFiles/"); string originalFileName = file.FileName; string fileExtension = originalFileName.Substring(originalFileName.LastIndexOf('.'), originalFileName.Length - originalFileName.LastIndexOf('.')); string currentFileName = (new Random()).Next() + fileExtension; //文件名中不要帶中文,否則會出錯 //生成文件路徑 string imagePath = path + currentFileName; //保存文件 file.SaveAs(imagePath); //保存文件之后,要告訴web前端上傳已經成功了 //獲取圖片的url string imgUrl = "http://localhost:8080/uploadedFiles/" + currentFileName; string iframeSrc = assistUrl + "#" + "ok|" + imgUrl; string result = "<iframe src=\"" + iframeSrc + "\"></iframe>"; context.Response.Write(result); context.Response.End(); return; } } public bool IsReusable { get { return false; } } } ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看