Python's http.server extended to include a file upload page
Project description
uploadserver
Python's http.server extended to include a file upload page
Installation
python3 -m pip install uploadserver
May require sudo depending on your distro.
Usage
python3 -m uploadserver
Accepts the same options as http.server.
After the server starts, the upload page is at /upload. For example, if the server is running at http://localhost:8000/ go to http://localhost:8000/upload .
Warning: This is an upload server, and running it will allow uploads. Uploaded files will replace existing files with the same name.
Run with a simple token.
python3 -m uploadserver -t helloworld
Now you can upload a file with token. For example:
curl http://127.0.0.1:8000/upload -F "file_1=@abc.txt" -F 'token=helloworld'
Credits
Most of uploadserver/__main__.py
was copied from Python's http.server.main()
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for uploadserver-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6468f34227a00eb2eabc043f1f553cb906d96bc078be57f6e59575902732f33 |
|
MD5 | 5de0726160d906d7dd605067093e844a |
|
BLAKE2b-256 | 9b90ee8ef15d2bafbda8daaac96b1dabe8ddf6746dd5809027f544872afb44b0 |