#x27;fname'].headers['Content-Type']
should get you what you want.
Jonathan
- Original Message -
From:
Mike
Jakowlew
To: zope@zope.org
Sent: Tuesday, November 15, 2005 1:19
PM
Subject: [Zope] Re: Problems using forms
to upload files to Zope
Okay I corrected:and also tried the getContentType, but I get the error:
Error Type: AttributeError
Error Value: FileUpload instance has no attribute 'getContentType'uploadForm.pydef content_type(self): return
self.getContentType()def writeDB(): # get sql method insert=conta
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Mike Jakowlew wrote:
> Here's what I'm trying to accomplish:
>
> 1. The user fills out a form page with various fields
> 2. The user selects a file to upload
> 3. when the user hits submit two things should happen:
> - The file selected is uploaded
>