Skip to main content

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

License: MIT

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uploadserver-0.3.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uploadserver-0.3.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file uploadserver-0.3.0.tar.gz.

File metadata

  • Download URL: uploadserver-0.3.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.6.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.6

File hashes

Hashes for uploadserver-0.3.0.tar.gz
Algorithm Hash digest
SHA256 7e383c57ae0be5a0c9ed61b1bdab420a795a754e8a20bad60451d1e9fb4434b7
MD5 b546b22d9aaa2f588d149dbb408e96ff
BLAKE2b-256 c28b56caa4177e69e49e5f1cf40ec223cd0b8b42fb43344a41bae487b8a7905d

See more details on using hashes here.

File details

Details for the file uploadserver-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: uploadserver-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.6.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.6

File hashes

Hashes for uploadserver-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c6468f34227a00eb2eabc043f1f553cb906d96bc078be57f6e59575902732f33
MD5 5de0726160d906d7dd605067093e844a
BLAKE2b-256 9b90ee8ef15d2bafbda8daaac96b1dabe8ddf6746dd5809027f544872afb44b0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page