1
0
mirror of https://github.com/djohnlewis/stackdump synced 2025-02-02 11:44:46 +00:00

14 lines
276 B
Python

## FormEncode, a Form processor
## Copyright (C) 2003, Ian Bicking <ianb@colorstudy.com>
"""
Wrapper class for use with cgi.FieldStorage types for file uploads
"""
import cgi
def convert_fieldstorage(fs):
if fs.filename:
return fs
else:
return None