[mod_python] ValueError with Flash 8 FileReference.upload(url)

Alec Matusis matusis at matusis.com
Fri Apr 21 05:40:44 EDT 2006

 Yes, I got that.
Thanks, I tested it, all works well.

I hope this filter does not tax the performance too much when I submit large

-----Original Message-----
From: Graham Dumpleton [mailto:grahamd at dscpl.com.au] 
Sent: Friday, April 21, 2006 2:39 AM
To: Alec Matusis
Cc: mod_python at modpython.org
Subject: Re: [mod_python] ValueError with Flash 8 FileReference.upload(url) 


On 21/04/2006, at 7:23 PM, Graham Dumpleton wrote:

> A creative way of getting around the problem. I hadn't thought
> of using a filter. Some suggested changes below.
> On 21/04/2006, at 6:12 PM, Alec Matusis wrote:
>> I figured out how to do this without changing mod_python source:
>> I wrote a mod_python input filter:
>> flashfilter.py:
>> from mod_python import apache
>> def inputfilter(filter):
>>     #this is a workaround flash 8 FileReference bug: Flash POST is  
>> not
>> RFC-compliant as of Flash 8,0,22,0
>     if 'flashfileref' in parse_args(filter.req.args):
>       filter.pass_on()
>       return

Logic wrong way around.

     if 'flashfileref' not in parse_args(filter.req.args):


More information about the Mod_python mailing list