Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't Upload #1321

Open
hqsone opened this issue Jan 17, 2024 · 1 comment
Open

Can't Upload #1321

hqsone opened this issue Jan 17, 2024 · 1 comment

Comments

@hqsone
Copy link

hqsone commented Jan 17, 2024

Start
miniserve-0.26.0-x86_64-pc-windows-msvc.exe "d:\dt_cf" --port 8888 --upload-files

Tue, 16 Jan 2024 18:17:03 +0000 [ERROR] Failed to process multipart request
Tue, 16 Jan 2024 18:17:03 +0000 [ERROR] caused by: No Content-Type header found

Curl

C:\Users\user\Downloads\curl\bin>curl -F "path=@c:\Users\user\Desktop\AnyDesk.exe" http://localhost:8888/upload\?path\=/
<!DOCTYPE html><html><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="color-scheme" content="dark light"><link rel="icon" type="image/svg+xml" href="/e586aaecb4"><link rel="stylesheet" href="/5d876385d9"><title>405 Method Not Allowed</title>
                <script>
                    // updates the color scheme by setting the theme data attribute
                    // on body and saving the new theme to local storage
                    function updateColorScheme(name) {
                        if (name && name != "default") {
                            localStorage.setItem('theme', name);
                            document.body.setAttribute("data-theme", name)
                        } else {
                            localStorage.removeItem('theme');
                            document.body.removeAttribute("data-theme")
                        }
                    }

                    // read theme from local storage and apply it to body
                    function loadColorScheme() {
                        var name = localStorage.getItem('theme');
                        updateColorScheme(name);
                    }

                    // load saved theme on page load
                    addEventListener("load", loadColorScheme);
                    // load saved theme when local storage is changed (synchronize between tabs)
                    addEventListener("storage", loadColorScheme);
                </script>
            </head><body><div class="error"><p>405 Method Not Allowed</p><p>Request did not meet this resource's requirements.</p><div class="error-nav"><a class="error-back" href="/">Go back to file listing</a></div><p class="footer"><div class="version">miniserve/0.26.0</div></p></div></body></html>
@hqsone
Copy link
Author

hqsone commented Jan 17, 2024

Also uploading doesn't work in web gui if autentification enabled

@svenstaro svenstaro changed the title Can't Unload Can't Upload Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant