標籤: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.解決方案