|
把文件通过网站写入到数据库中。
录制的脚本为:
web_submit_data("newfile.do_5",
"Action=http://10.99.16.213:8080/dmsweb/commonfile/newfile.do?actioncode=adduploadFileAttchment",
"Method=POST",
"EncType=multipart/form-data",
"RecContentType=text/html",
"Referer=http://10.99.16.213:8080/dmsweb/commonfile/newfile.do?actioncode=addrelation",
"Snapshot=t90.inf",
"Mode=HTML",
ITEMDATA,
"Name=org.apache.struts.taglib.html.TOKEN", "Value={WCSParam10}", ENDITEM,
"Name=sourceFile", "Value=E:\\LR9Download\\help\\install.pdf", "File=Yes", ENDITEM,
"Name=sourceFilePath", "Value=E:\\x5CLR9Download\\x5Chelp\\x5Cinstall.pdf", ENDITEM,
"Name=applicationFile", "Value=", "File=Yes", ENDITEM,
"Name=applicationFilePath", "Value=", ENDITEM,
"Name=submitFlag", "Value=Y", ENDITEM,
"Name=fileID", "Value=3349", ENDITEM,
"Name=fileClass", "Value=COMMON FILE", ENDITEM,
LAST);
执行时提示:
Action.c(198): Warning -26490: File name in a multipart submit is missing or empty. Using an empty file [MsgId: MWAR-26490]
Action.c(198): Resource "http://10.99.16.213:8080/dmsweb/include/dms.css" is in the cache already and will not be downloaded again [MsgId: MMSG-26655]
Action.c(198): Resource "http://10.99.16.213:8080/dmsweb/images/icon-sametime-active.gif" is in the cache already and will not be downloaded again [MsgId: MMSG-26655]
Action.c(198): web_submit_data("newfile.do_5") highest severity level was "warning", 7928 body bytes, 144 header bytes [MsgId: MMSG-26388]
Action.c(217): Resource "http://10.99.16.213:8080/dmsweb//include/dms.css" is in the cache already and will not be downloaded again [MsgId: MMSG-26655]
不能向数据库中插入数据,咋办啊? |
|