mirror of
https://github.com/HanaokaYuzu/Gemini-API.git
synced 2026-04-12 12:23:03 -06:00
[PR #198] [MERGED] Validate file paths, determine mime type, and send proper file metadata #215
Labels
No labels
advanced
advanced
bug
dependencies
discussion
documentation
duplicate
enhancement
good first issue
help wanted
invalid
model
pull-request
question
unreproducible
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mirrors/Gemini-API#215
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/HanaokaYuzu/Gemini-API/pull/198
Author: @luuquangvu
Created: 12/16/2025
Status: ✅ Merged
Merged: 12/30/2025
Merged by: @HanaokaYuzu
Base:
master← Head:master📝 Commits (2)
11b6bceValidate file paths, determine mime type, and send proper file metadata to resolve content access errors.c1deb41Refactor: remove MIME type detection logic and rely on httpx for inference during file uploads📊 Changes
1 file changed (+9 additions, -3 deletions)
View changed files
📝
src/gemini_webapi/utils/upload_file.py(+9 -3)📄 Description
Fix: Ensure the correct MIME type is sent for file uploads to resolve the Gemini access denial issue, which currently returns the message: "Normally I can help with things like this, but I don't seem to have access to that content. You can try again or ask me for something else."
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.