This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mschaming
Recipients mschaming
Date 2017-09-07.12:31:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1504787509.49.0.0241547941572.issue31382@psf.upfronthosting.co.za>
In-reply-to
Content
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 = <built-in method with_traceback of TypeError object> 

but not when file is ~> 10kb
History
Date User Action Args
2017-09-07 12:31:49mschamingsetrecipients: + mschaming
2017-09-07 12:31:49mschamingsetmessageid: <1504787509.49.0.0241547941572.issue31382@psf.upfronthosting.co.za>
2017-09-07 12:31:49mschaminglinkissue31382 messages
2017-09-07 12:31:49mschamingcreate