[Zope] mozilla multipart/form-data
Max M
maxm@mxm.dk
Fri, 15 Mar 2002 07:49:39 +0000
Bryan C. Andregg wrote:
>This of course breaks Zope products that check file field uploads by using the
>_.len(request['file']).read() method. They'll need to be wrapped in an if
>statement now, I guess.
>
>Has anyone else seen this?
>
I have used this code for checking upload, and this still works fine:
image = Image.Image('image', self.title, file)
if len(image.data) is 0:
image=''
self.image = image
regards Max M