[PR #12965] [MERGED] fix: MacOS file picker extensions broken #45263

Closed
opened 2026-04-25 00:58:09 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/12965
Author: @vincentkoc
Created: 11/5/2025
Status: Merged
Merged: 11/6/2025
Merged by: @jmorganca

Base: mainHead: fix/file-picker-mac


📝 Commits (2)

📊 Changes

2 files changed (+18 additions, -5 deletions)

View changed files

📝 app/dialog/cocoa/dlg.m (+17 -4)
📝 app/dialog/cocoa/dlg_darwin.go (+1 -1)

📄 Description

On macOS 11+ (especially 15.x), setAllowedFileTypes is deprecated and may not work properly with video files. We need to update to use the modern allowedContentTypes API with UTIs (Uniform Type Identifiers). Without this the changes in https://github.com/ollama/ollama/pull/12962 wont work and also you are unable to select non-image files like .txt or .mp4 (fir video support).

Patched Version (this branch)

Screenshot 2025-11-05 at 00 16 45

Unpatched Version (current release)

Screenshot 2025-11-05 at 00 17 05

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/12965 **Author:** [@vincentkoc](https://github.com/vincentkoc) **Created:** 11/5/2025 **Status:** ✅ Merged **Merged:** 11/6/2025 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `fix/file-picker-mac` --- ### 📝 Commits (2) - [`04d6681`](https://github.com/ollama/ollama/commit/04d66818cfa5df21b35604127692e52dc6ca264b) fix: macos file picker extensions - [`f952fa6`](https://github.com/ollama/ollama/commit/f952fa6d8c1b848f3fe03ec2b7d198538eb5d1ca) Update dlg.m ### 📊 Changes **2 files changed** (+18 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `app/dialog/cocoa/dlg.m` (+17 -4) 📝 `app/dialog/cocoa/dlg_darwin.go` (+1 -1) </details> ### 📄 Description On macOS 11+ (especially 15.x), setAllowedFileTypes is deprecated and may not work properly with video files. We need to update to use the modern allowedContentTypes API with UTIs (Uniform Type Identifiers). Without this the changes in https://github.com/ollama/ollama/pull/12962 wont work and also you are unable to select non-image files like .txt or .mp4 (fir video support). ## Patched Version (this branch) <img width="2256" height="1606" alt="Screenshot 2025-11-05 at 00 16 45" src="https://github.com/user-attachments/assets/82ee1bcb-b4d1-4e52-b7ea-0392ad6dcb4a" /> ## Unpatched Version (current release) <img width="2262" height="1600" alt="Screenshot 2025-11-05 at 00 17 05" src="https://github.com/user-attachments/assets/3b411887-4126-4948-909e-c370cdb2852f" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-25 00:58:09 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#45263