Steps to reproduce
Step 1: Create a folder named upload
Step 2: Launch miniserve with upload option
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

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.
Steps to reproduce
Step 1: Create a folder named
uploadStep 2: Launch
miniservewith upload optionminiserve -u . -p 3333Step 3: Open the browser, and go to http://127.0.0.1:3333/upload
Expected behavior
It shows an empty directory.
Actual behavior
Suggestion
Don't use
/uploadroute to upload files, instead, use?function=uploadparam.P.S. I discovered this bug by inspecting upload form. There might be similar bugs somewhere.