RE: [Zope3-Users] testbrowser and file upload

2006-07-03 Thread Darryl Cousins
Hi Roger, Yes that works. Following the same line of thinking it also works when I give control.filename a value **before** I assign control.value. Apparently the content_type doesn't need to be set. ... >>> control.filename = 'myPhoto.gif' >>> control.value = myPhoto ... I should have thou

RE: [Zope3-Users] testbrowser and file upload

2006-07-03 Thread dev
Hi Darryl > I have found a strange behaviour with testbrowser and file > objects. What appears to happen is that the > cStringIO.StringIO that I pass to the file control in a form > is converted to unicode before reaching the view handler. > This then raises AttibuteError: Unicode has no read