Re: Webpy and UnicodeDecodeError

2009-12-18 Thread Oscar Del Ben
On Dec 18, 4:43 pm, Dave Angel wrote: > Oscar Del Ben wrote: > > So I'm trying to send a file through webpy and urllib2 but I can't get > > around these UnicodeErrors. Here's the code: > > > # controller > > > x = web.input(video_original={}) >

Webpy and UnicodeDecodeError

2009-12-18 Thread Oscar Del Ben
So I'm trying to send a file through webpy and urllib2 but I can't get around these UnicodeErrors. Here's the code: # controller x = web.input(video_original={}) params = {'foo': x['foo']} files = (('video[original]', 'test', x['video_original'].file.read ()),) client.upload(upload_url, params,