<form name="uploadForm" method="POST" action="http://api.t.sina.com.cn/statuses/upload.xml" enctype="multipart/form-data" > 
<input type="text" name="status" value="填写要发表的文字" />
<input type="file" name="pic" value="浏览文件" />
<input type="submit" value="上传"/>
<input type="hidden" name="source" value="改成你的appkey" />
</form>
 
我想知道上传图片之后怎么获得上传图片的HTTP路径啊

解决方案 »

  1.   

    Server.MapPath("你本地的相对路径")
      

  2.   

    有地方写着他返回这个字段:"profile_image_url": "http://tp1.sinaimg.cn/1404376560/50/0/1"我怎么用JS获取他啊
      

  3.   

    在发布成功一条带图片的微博后
    返回的信息里包括的,
    bmiddle_pic  string  中等尺寸图片地址  
    original_pic  string  原始图片地址  
    thumbnail_pic  string  缩略图片地址  
      

  4.   

    去http://open.weibo.com/下载JS的SDK研究去
      

  5.   

    不过JS现在还不支持Statuses/upload 接口!!其实返回的信息就是一段JSON,你可以试着用JS读取这个JSON