Skip to content

Commit fd1abb3

Browse files
author
Richard Jones
committed
fix the filename fallback
1 parent 605bda2 commit fd1abb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roundup/cgi/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: client.py,v 1.153 2004-01-20 03:58:38 richard Exp $
1+
# $Id: client.py,v 1.154 2004-01-20 05:55:24 richard Exp $
22

33
__doc__ = """
44
WWW request handler (also used in the stand-alone server).
@@ -1778,7 +1778,7 @@ def parsePropsFromForm(self, num_re=re.compile('^\d+$')):
17781778
props['name'] = fn
17791779
# use this info as the type/filename properties
17801780
if propdef.has_key('type'):
1781-
if hasattr(value, 'type'):
1781+
if hasattr(value, 'type') and value.type:
17821782
props['type'] = value.type
17831783
elif mimetypes.guess_type(fn)[0]:
17841784
props['type'] = mimetypes.guess_type(fn)[0]

0 commit comments

Comments
 (0)