Issue 31382: CGI upload error when file ~< 10kb (original) (raw)

An error occurs when uploading a file ~<10kb: A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred. /var/www/html/file-uploader/uploader.py in () 39 40 # A nested FieldStorage instance holds the file => 41 fileitem = form['file'] 42 43 # Test if the file was uploaded fileitem undefined, form = FieldStorage(None, None, '') /usr/lib/python3.4/cgi.py in getitem(self=FieldStorage(None, None, ''), key='file') 591 """Dictionary style indexing.""" 592 if self.list is None: => 593 raise TypeError("not indexable") 594 found = [] 595 for item in self.list: builtin TypeError = <class 'TypeError'>

TypeError: not indexable args = ('not indexable',) with_traceback =

but not when file is ~> 10kb