Trouble with flex file-uploading and twisted.web2 FileSaver(烙铁)

34 篇文章 0 订阅
19 篇文章 0 订阅

用Flex的FileReference来把文件post到twisted.web2写得服务端,这个看似很简单,却问题多多。

Flex总是报错“IO错误, #2038”

(代码很普通,文档中的实例)

服务段代码:

 

 

 

 

无奈之下,sniff了一把。(mac下free:CocoaPacketAnalyzer)

 

Flash Player post 了数据:

 

 

 

眼看着post完了,到了最后,twisted.web2返回:

 

 

 

这个错误很奇怪:

Bad Request

Unexpected data on same line as boundary: '--'

 

spotlight twisted 源码,只有web2, fileupload.py用了这样的字符:

 

 

 

exarkun回信说:


This sounds like it may be related to this ticket:

 http://twistedmatrix.com/trac/ticket/2113

Or it may be another unrelated error.  If you can try the patch attached
to that ticket and comment if it works, that might be helpful.
Development is not currently proceeding very rapidly on Twisted Web2,
though.  You may need to champion the ticket in order to get it
resolved.

 

 

还没实验到底能不能用.

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值