| KeyError |
Python 3.11.2: /bin/python3 Sun Dec 7 16:58:42 2025 |
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/codedrop/upload.py in <module> |
| 19 |
| 20 # A nested FieldStorage instance holds the file |
| => 21 fileitem = form['file'] |
| 22 email = form.getvalue('email') |
| 23 maker = form.getvalue('maker') |
| fileitem undefined, form = FieldStorage(None, None, []) |
| /usr/lib/python3.11/cgi.py in __getitem__(self=FieldStorage(None, None, []), key='file') |
| 534 if item.name == key: found.append(item) |
| 535 if not found: |
| => 536 raise KeyError(key) |
| 537 if len(found) == 1: |
| 538 return found[0] |
| builtin KeyError = <class 'KeyError'>, key = 'file' |
KeyError: 'file'
add_note =
<built-in method add_note of KeyError object>
args =
('file',)
with_traceback =
<built-in method with_traceback of KeyError object>