[Zope] File object converted into string ????
Casey Duncan
cduncan@kaivo.com
Fri, 20 Jul 2001 09:06:34 -0600
Gitte Wange wrote:
>
> Hello again - I am sorry to bother you guys so much today
>
> I just get this weird error thing ... a file I'm trying to upload through
> http is being converted into a string ????
>
> I'm not doing anything unusual ... and the upload code works in another
> context.
>
> I have this form field on a page with a file field ... I browse for a file
> and hit the submit button.
>
> When the code reaches the lines of the upload action I get this error:
>
> Error Type: AttributeError
> Error Value: 'string' object has no attribute 'filename'
>
Be sure the opening form tag looks like this:
<form action="...." method="post" enctype="multipart/form-data">
The latter 2 are the key when posting files.
hth,
--
| Casey Duncan
| Kaivo, Inc.
| cduncan@kaivo.com
`------------------>