issue: File upload - Method not allowed? #5842

Closed
opened 2025-11-11 16:35:35 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @ohromeo on GitHub (Jul 23, 2025).

Check Existing Issues

  • I have searched the existing issues and discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Git Clone

Open WebUI Version

0.6.10

Ollama Version (if applicable)

No response

Operating System

Linux - tumbleweed

Browser (if applicable)

edge/chrome latest

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

"detail": "Method Not Allowed"

Actual Behavior

Hi,

sorry, doubt this is a bug, but can't get clear answers as whether this is supported via the api or not... upload works through the browser interface, so i am assuming the api should work.

trying to upload a file via postman for testing, keep receiving:

"detail": "Method Not Allowed"

I have authenticated and have the token and successfully connected...

the call i created is:
Method: POST
192.168.123.43:8080/api/v1/files?files=//localhost/images/Lockkey.png
key: files
Value: //localhost/images/Lockkey.png

reviewed from: https://docs.openwebui.com/getting-started/api-endpoints/

curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Accept: application/json"
-F "file=@/path/to/your/file" http://localhost:3000/api/v1/files/

can someone confirm definitively if you can upload a file for review using the open-webui api?

Thanks!

Steps to Reproduce

Image

Logs & Screenshots

Image

Additional Information

none

Originally created by @ohromeo on GitHub (Jul 23, 2025). ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Git Clone ### Open WebUI Version 0.6.10 ### Ollama Version (if applicable) _No response_ ### Operating System Linux - tumbleweed ### Browser (if applicable) edge/chrome latest ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior "detail": "Method Not Allowed" ### Actual Behavior Hi, sorry, doubt this is a bug, but can't get clear answers as whether this is supported via the api or not... upload works through the browser interface, so i am assuming the api should work. trying to upload a file via postman for testing, keep receiving: "detail": "Method Not Allowed" I have authenticated and have the token and successfully connected... the call i created is: Method: POST 192.168.123.43:8080/api/v1/files?files=//localhost/images/Lockkey.png key: files Value: //localhost/images/Lockkey.png reviewed from: https://docs.openwebui.com/getting-started/api-endpoints/ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Accept: application/json" \ -F "file=@/path/to/your/file" http://localhost:3000/api/v1/files/ can someone confirm definitively if you can upload a file for review using the open-webui api? Thanks! ### Steps to Reproduce <img width="848" height="432" alt="Image" src="https://github.com/user-attachments/assets/948233ea-62f5-4968-b56e-c15d65ab8d88" /> ### Logs & Screenshots <img width="848" height="432" alt="Image" src="https://github.com/user-attachments/assets/7b38462b-581e-45f4-9cb5-bb0c3b174a93" /> ### Additional Information none
GiteaMirror added the bug label 2025-11-11 16:35:35 -06:00
Author
Owner

@tjbck commented on GitHub (Jul 23, 2025):

We're unable to reproduce, keep us updated!

@tjbck commented on GitHub (Jul 23, 2025): We're unable to reproduce, keep us updated!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#5842