issue: File Upload ignored when users drag files into prompt #5739

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

Originally created by @karlettoh on GitHub (Jul 11, 2025).

Originally assigned to: @tjbck on GitHub.

Check Existing Issues

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

Installation Method

Docker

Open WebUI Version

0.6.15

Ollama Version (if applicable)

No response

Operating System

Debian 12.11

Browser (if applicable)

No response

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

Our "private" model doesn't allow file uploads.
When I try to upload a file, it should not allow me.
When I drag a file into the browser window, it should refuse to upload.

Actual Behavior

When I drag a file into the browser, it uploads the file into the prompt, ignoring file upload.

Steps to Reproduce

The model we use with uploads disabled, when a user hovers over it, we see that it cannot be clicked - great.

Image

When the same user finds a file, and drags and drops it, they can upload it successfully.

Image

Logs & Screenshots

Logs:
2025-07-11 14:52:16.182 | INFO | uvicorn.protocols.http.httptools_impl:send:476 -:0 - "GET /api/models HTTP/1.1" 200 - {}
2025-07-11 14:52:20.179 | INFO | uvicorn.protocols.http.httptools_impl:send:476 -:0 - "GET /_app/version.json HTTP/1.1" 200 - {}
2025-07-11 14:52:35.434 | INFO | uvicorn.protocols.http.httptools_impl:send:476 -:0 - "GET /api/v1/chats/96b06c0c-1745-4580-90b2-dc585a0e0cbc HTTP/1.1" 200 - {}
2025-07-11 14:52:41.727 | INFO | open_webui.routers.files:upload_file:94 - file.content_type: application/json - {}
2025-07-11 14:52:44.229 | INFO | open_webui.routers.retrieval:save_docs_to_vector_db:1125 - save_docs_to_vector_db: document Data_Analysis.json file-6ea71dbd-c1ee-4ff5-bf07-1a5fd06acbf4 - {}
2025-07-11 14:52:44.703 | INFO | open_webui.routers.retrieval:save_docs_to_vector_db:1208 - adding to collection file-6ea71dbd-c1ee-4ff5-bf07-1a5fd06acbf4 - {}
2025-07-11 14:52:48.871 | INFO | uvicorn.protocols.http.httptools_impl:send:476 -:0 - "GET /_app/version.json HTTP/1.1" 200 - {}
2025-07-11 14:52:48.872 | INFO | uvicorn.protocols.http.httptools_impl:send:476 -:0 - "GET /_app/version.json HTTP/1.1" 200 - {}
2025-07-11 14:52:54.693 | INFO | uvicorn.protocols.http.httptools_impl:send:476 -:0 - "POST /api/v1/files/ HTTP/1.1" 200 - {}

Additional Information

No response

Originally created by @karlettoh on GitHub (Jul 11, 2025). Originally assigned to: @tjbck on GitHub. ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Docker ### Open WebUI Version 0.6.15 ### Ollama Version (if applicable) _No response_ ### Operating System Debian 12.11 ### Browser (if applicable) _No response_ ### 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 Our "private" model doesn't allow file uploads. When I try to upload a file, it should not allow me. When I drag a file into the browser window, it should refuse to upload. ### Actual Behavior When I drag a file into the browser, it uploads the file into the prompt, ignoring file upload. ### Steps to Reproduce The model we use with uploads disabled, when a user hovers over it, we see that it cannot be clicked - great. <img width="821" height="248" alt="Image" src="https://github.com/user-attachments/assets/cbd5f9ab-1fe6-46e8-a991-a12f2a38ebf0" /> When the same user finds a file, and drags and drops it, they can upload it successfully. <img width="818" height="309" alt="Image" src="https://github.com/user-attachments/assets/9aba93e7-4ddd-436d-944e-51f174a7921c" /> ### Logs & Screenshots Logs: 2025-07-11 14:52:16.182 | INFO | uvicorn.protocols.http.httptools_impl:send:476 -:0 - "GET /api/models HTTP/1.1" 200 - {} 2025-07-11 14:52:20.179 | INFO | uvicorn.protocols.http.httptools_impl:send:476 -:0 - "GET /_app/version.json HTTP/1.1" 200 - {} 2025-07-11 14:52:35.434 | INFO | uvicorn.protocols.http.httptools_impl:send:476 -:0 - "GET /api/v1/chats/96b06c0c-1745-4580-90b2-dc585a0e0cbc HTTP/1.1" 200 - {} 2025-07-11 14:52:41.727 | INFO | open_webui.routers.files:upload_file:94 - file.content_type: application/json - {} 2025-07-11 14:52:44.229 | INFO | open_webui.routers.retrieval:save_docs_to_vector_db:1125 - save_docs_to_vector_db: document Data_Analysis.json file-6ea71dbd-c1ee-4ff5-bf07-1a5fd06acbf4 - {} 2025-07-11 14:52:44.703 | INFO | open_webui.routers.retrieval:save_docs_to_vector_db:1208 - adding to collection file-6ea71dbd-c1ee-4ff5-bf07-1a5fd06acbf4 - {} 2025-07-11 14:52:48.871 | INFO | uvicorn.protocols.http.httptools_impl:send:476 -:0 - "GET /_app/version.json HTTP/1.1" 200 - {} 2025-07-11 14:52:48.872 | INFO | uvicorn.protocols.http.httptools_impl:send:476 -:0 - "GET /_app/version.json HTTP/1.1" 200 - {} 2025-07-11 14:52:54.693 | INFO | uvicorn.protocols.http.httptools_impl:send:476 -:0 - "POST /api/v1/files/ HTTP/1.1" 200 - {} ### Additional Information _No response_
GiteaMirror added the bug label 2025-11-11 16:32:06 -06:00
Author
Owner

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

Good catch, addressed with 82093cf690 in dev!

@tjbck commented on GitHub (Jul 16, 2025): Good catch, addressed with 82093cf690b508c3908061694d0289dcc248fd23 in dev!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#5739