retoor bcb18e8195 fix: add missing slash between upload_url and filename in generate_upload_url
The generate_upload_url method previously concatenated self.upload_url directly with the filename, producing malformed URLs when upload_url did not end with a trailing slash. Changed the concatenation to insert "/" between the base URL and filename, ensuring correct redirect paths regardless of upload_url format.
2024-11-26 05:50:56 +00:00

RUpload

Easiest file manager for your server made for public use.

It doesn't have captcha or whatsoever. It's designed for public use, as long the domain isn't listed in a search engine. It has a limitation for file size, that's it's only security. Rate limiting is in consideration. The default file size is 50Mb. The default storage quota for whole directory is 10Gb. Default config will prevent your server for heavy abuse.

Installation

python3 -m venv .venv
./venv/bin/python -m pip install .

Usage

rupload.serve [-h]
                     [--hostname HOSTNAME]
                     [--port PORT]
                     [--upload_folder UPLOAD_FOLDER]
                     [--upload_url UPLOAD_URL]
                     [--max_file_size MAX_FILE_SIZE]

Start the file upload server.

options:
  -h, --help            show this help message
                        and exit
  --hostname HOSTNAME   The hostname for the
                        server.
  --port PORT           The port to bind the
                        server to.
  --upload_folder UPLOAD_FOLDER
                        Directory to store
                        uploaded files.
  --upload_url UPLOAD_URL
                        HTTP(S) URL where the
                        server will serve the
                        uploaded files.
  --max_file_size MAX_FILE_SIZE
                        Maximum file size in
                        bytes (default is
                        50MB).
S
Description
Upload page for sharing on the web
Readme
3.8 MiB
Languages
Python 97.6%
Makefile 2.4%