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.

classification
Title: CGI upload error when file ~< 10kb
Type: Stage: resolved
Components: Extension Modules Versions: Python 3.4
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: iritkatriel, mschaming
Priority: normal Keywords:

Created on 2017-09-07 12:31 by mschaming, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg301582 - (view) Author: Marc (mschaming) Date: 2017-09-07 12:31
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
msg404697 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2021-10-21 22:41
There isn't enough information here to understand what your issue is. If you are still having this problem on a current python version (3.9+), please create a new issue and provide instructions how to reproduce it and information about the environment in which you are seeing it.
History
Date User Action Args
2022-04-11 14:58:52adminsetgithub: 75563
2021-10-21 22:41:34iritkatrielsetstatus: open -> closed

nosy: + iritkatriel
messages: + msg404697

resolution: rejected
stage: resolved
2017-09-07 12:31:49mschamingcreate