Skip to content

Serve a path named "upload" #151

Description

@KSXGitHub

Steps to reproduce

Step 1: Create a folder named upload

mkdir upload

Step 2: Launch miniserve with upload option

miniserve -u . -p 3333

Step 3: Open the browser, and go to http://127.0.0.1:3333/upload

Expected behavior

It shows an empty directory.

Actual behavior

404 Not Found
Route /upload could not be found

image

Suggestion

Don't use /upload route to upload files, instead, use ?function=upload param.

<form action='?function=upload&path=/target' method='POST'>

P.S. I discovered this bug by inspecting upload form. There might be similar bugs somewhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions