轉:Warning -26490: File name in a multipart submit is missing or empty.解決方案

來源:互聯網
上載者:User

標籤:http   io   os   ar   for   檔案   art   sp   問題   

錄製測試上傳檔案指令碼,回放報Warning -26490: File name in a multipart submit is missing or empty. Using an empty file          [MsgId: MWAR-26490]。

經過幾天努力,總算解決了此問題,先看以前的指令碼:         web_submit_data("GeneralReport.aspx_2",

         "Action=http://192.168.0.80/pbcmsc/GaiSuan/GeneralReport.aspx?taskid=0e1d66f8-4ecd-42a7-8f9e-e79f6733e992",

                   "Method=POST",

                   "EncType=multipart/form-data",

                   "RecContentType=text/html",

         "Referer=http://192.168.0.80/pbcmsc/GaiSuan/GeneralReport.aspx?taskid=0e1d66f8-4ecd-42a7-8f9e-e79f6733e992",

                   "Snapshot=t11.inf",

                   "Mode=HTML",

                   ITEMDATA,

                   "Name=__EVENTTARGET", "Value=", ENDITEM,

                   "Name=__EVENTARGUMENT", "Value=", ENDITEM,

                   "Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState6}", ENDITEM,

                   "Name=__EVENTVALIDATION", "Value=/wEWBQLi6rucCgKxyJGqCQLgqY6fBALq+76DCwLt3oXMA+v3KRNiiYlPYq+7WLq5K9a+OZs4", ENDITEM,

                   "Name=ddlVersion", "Value=送審版", ENDITEM,

                   "Name=txtBelongToPackage", "Value=GOOD-3", ENDITEM,

                   "Name=txtDemo", "Value=", ENDITEM,

                   "Name=fuPrj", "Value=F:""""test1.bwbd5", "File=Yes", ENDITEM,

                   "Name=mu2$multipFile", "Value=", "File=Yes", ENDITEM,

                   "Name=btnUpload", "Value=上傳", ENDITEM,

                   "Name=dxpcCommonWinWS", "Value=1:1:12000:237:238:0:0:0", ENDITEM,

                   LAST);

 

         通過瞭解web_submit_data函數及各參數,發現fuprj和mu2$multipFile都是上傳附件的路徑。我就想是不是fuprj第一個成功,mu2$multipFile為空白是會失敗,並報該錯,給他賦值一個上傳檔案(mu2$multipFile的Value= F:""""test1.txt),結果二個都上傳成功!

轉:Warning -26490: File name in a multipart submit is missing or empty.解決方案

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.