51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2517|回复: 3
打印 上一主题 下一主题

[原创] 上传图片为什么不能成功呢?请大虾们指点

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2007-11-21 17:08:33 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我录制了上传图片的一段程序,也对随机产生的图片id做了关联,但回放以后看结果却仍然显示“无图”。请问这是为什么呢?

在run-time viewer中也可以看到图片是上传了。

附:主要的代码:

        char *picstr;
        web_set_max_html_param_len("1196");

        web_submit_data("doUpload",                "Action=http://.../imgup/turbine/action/imgup.UploadFileAction/eventsubmit_doupload/doUpload",
                "Method=POST",
                "EncType=multipart/form-data",
                "RecContentType=text/html",
                "Referer=http://.../my/turbine/template/imgup%2Cupload.html?picstr={picstr}",
                "Snapshot=t11.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=upFile", "Value=C:\\2.gif", "File=yes", ENDITEM,
                "Name=isAddWater", "Value=0", ENDITEM,
                "Name=fileType", "Value=.gif.jpg", ENDITEM,
                "Name=fileMinSize", "Value=1", ENDITEM,
                "Name=fileMaxSize", "Value=204800", ENDITEM,
                "Name=imgMinWidth", "Value=0", ENDITEM,
                "Name=imgMaxWidth", "Value=0", ENDITEM,
                "Name=imgMinHeight", "Value=0", ENDITEM,
                "Name=imgMaxHeight", "Value=0", ENDITEM,
                "Name=imgWidth", "Value=96", ENDITEM,
                "Name=imgHeight", "Value=95", ENDITEM,
                "Name=imgSize", "Value=16944", ENDITEM,
                "Name=suffix", "Value=CFJ4", ENDITEM,
                "Name=picstr", "Value={picstr}", ENDITEM,
                "Name=hasPic", "Value=0", ENDITEM,
                LAST);


日志部分:
BuyAction.c(51): web_url("template") was successful, 22 body bytes, 276 header bytes, 15 chunking overhead bytes          [MsgId: MMSG-26385]
BuyAction.c(60): Redirecting "http://.../imgup/turbine/action/imgup.UploadFileAction/eventsubmit_doupload/doUpload" (redirection depth=0)          [MsgId: MMSG-26694]
BuyAction.c(60): To location "http://.../my/turbine/template/imgup,upload.html?r=0&picstr=aced000573720021636f6d2e68633336302e696d6775702e626f2e4d756c746946696c65506172616d0000000000000000020007490008627573696e466c67490007636f7079466c674a00066d61696e49644900067069634e756d490007706963666c6167490008706963696e6465784900047479706578720026636f6d2e68633336302e696d6775702e626f2e55706c6f61645061676542617365506172616d00000000000000000200044a000a70726f766964657249644a000973657373696f6e49644c00076261636b55726c7400124c6a6176612f6c616e672f537472696e673b4c000673756666697871007e00027872001c636f6d2e68633336302e696d6775702e626f2e42617365506172616d00000000000000000200014c000a75706c6f61645479706574001c4c636f6d2f68633336302f696d6775702f55706c6f6164547970653b78707e72001a636f6d2e68633336302e696d6775702e55706c6f61645479706500000000000000001200007872000e6a6176612e6c616e672e456e756d00000000000000001200007870740009425553494e5f494d470000001748e2266300000000053a0ad774003d687474703a2f2f6d792e6232622e68633336302e636f6d2f6d792f74757262696e652f74656d706c6174652f696d6775702c75706c6f61642e68746d6c74000463356b490000000000000000000000000000000000000003000000000000000000000000"          [MsgId: MMSG-26693]
BuyAction.c(60): Resource "http://.../imgup/style/main.css" is in the cache already and will not be downloaded again          [MsgId: MMSG-26655]
BuyAction.c(60): Resource "http://.../imgup/images/ddsc_03.gif" is in the cache already and will not be downloaded again          [MsgId: MMSG-26655]
BuyAction.c(60): Found resource "http://.../imgup/tmppic/l_87689943_1RFk.gif" in HTML "http://my.b2b.hc360.com/my/turbine/template/imgup,upload.html?r=0&picstr=aced000573720021636f6d2e68633336302e696d6775702e626f2e4d756c746946696c65506172616d0000000000000000020007490008627573696e466c67490007636f7079466c674a00066d61696e49644900067069634e756d490007706963666c6167490008706963696e6465784900047479706578720026636f6d2e68633336302e696d6775702e626f2e55706c6f61645061676542617365506172616d00000000000000000200044a000a70726f766964657249644a000973657373696f6e49644c00076261636b55726c7400124c6a6176612f6c616e672f537472696e673b4c000673756666697871007e00027872001c636f6d2e68633336302e696d6775702e626f2e42617365506172616d00000000000000000200014c000a75706c6f61645479706574001c4c636f6d2f68633336302f696d6775702f55706c6f6164547970653b78707e72001a636f6d2e68633336302e696d6775702e55706c6f61645479706500000000000000001200007872000e6a6176612e6c616e672e456e756d00000000000000001200007870740009425553494e5f494d470000001748e2266300000000053a0ad774003d687474703a2f2f6d792e6232622e68633336302e636f6d2f6d792f74757262696e652f74656d706c6174652f696d6775702c75706c6f61642e68746d6c74000463356b490000000000000000000000000000000000000003000000000000000000000000"          [MsgId: MMSG-26659]
BuyAction.c(60): Resource "http://.../imgup/images/1x1.jpg" is in the cache already and will not be downloaded again          [MsgId: MMSG-26655]
BuyAction.c(60): Resource "http://..../imgup/images/fieldset_bottom_03.gif" is in the cache already and will not be downloaded again          [MsgId: MMSG-26655]
BuyAction.c(60): web_submit_data("doUpload") was successful, 7185 body bytes, 2161 header bytes, 18 chunking overhead bytes          [MsgId: MMSG-26385]
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
 楼主| 发表于 2007-11-21 18:01:25 | 只看该作者
大家还需要其他的是什么东西来定位问题吗?
回复 支持 反对

使用道具 举报

该用户从未签到

3#
 楼主| 发表于 2007-11-22 10:24:55 | 只看该作者
谁能给指点一下啊?
回复 支持 反对

使用道具 举报

该用户从未签到

4#
 楼主| 发表于 2007-11-27 17:31:59 | 只看该作者
对不起,实在是解决不了了,不想让它沉下去
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-9-17 08:33 , Processed in 0.093570 second(s), 28 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表