persley 发表于 2008-6-19 14:48:12

网站测试文件上传的问题,急啊,谢谢了

把文件通过网站写入到数据库中。
录制的脚本为:
        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       
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       
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       
Action.c(198): web_submit_data("newfile.do_5") highest severity level was "warning", 7928 body bytes, 144 header bytes       
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       

不能向数据库中插入数据,咋办啊?

iori 发表于 2008-6-20 10:24:05

就这点代码?
页: [1]
查看完整版本: 网站测试文件上传的问题,急啊,谢谢了