[New-bugs-announce] [issue42004] Allow uploading files with SimpleHTTPRequestHandler

Javier Ayres report at bugs.python.org
Sat Oct 10 20:53:17 EDT 2020


New submission from Javier Ayres <javier at lufte.net>:

Hello. I'm a big fan of the http.server module to quickly serve some files in a local network with `python3 -m http.server`. I regularly needed to get some files from other people too, but getting everyone to install/run python3 was not such a simple task. Eventually I wrote a subclass of SimpleHTTPRequestHandler that added a form with a file input and accepted POST requests, so people could also upload files to my computer. I think this would be a fine addition to SimpleHTTPRequestHandler, so I'm attaching a potential patch that implements this and adds a new cli parameter so this feature is only enabled explicitly.

----------
components: Library (Lib)
files: patch
messages: 378418
nosy: lufte
priority: normal
severity: normal
status: open
title: Allow uploading files with SimpleHTTPRequestHandler
type: enhancement
versions: Python 3.10
Added file: https://bugs.python.org/file49506/patch

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42004>
_______________________________________


More information about the New-bugs-announce mailing list