Skip to content

fix: Check for .md version when detecting duplicate .txt files#1189

Open
Jah-yee wants to merge 1 commit intolangflow-ai:mainfrom
Jah-yee:main
Open

fix: Check for .md version when detecting duplicate .txt files#1189
Jah-yee wants to merge 1 commit intolangflow-ai:mainfrom
Jah-yee:main

Conversation

@Jah-yee
Copy link

@Jah-yee Jah-yee commented Mar 18, 2026

When uploading .txt files, OpenRAG renames them to .md for Langflow compatibility. However, the duplicate check was only searching for the original .txt filename, so re-uploading a .txt file would not trigger the overwrite warning and would instead create duplicate chunks.

This fix:

  1. When checking for duplicates of .txt files, also checks for the .md version
  2. When deleting for replacement, uses the correct filename (.md if that's what was stored)

Fixes: #1174

When uploading .txt files, OpenRAG renames them to .md for Langflow
compatibility. However, the duplicate check was only searching for the
original .txt filename, so re-uploading a .txt file would not trigger
the overwrite warning and would instead create duplicate chunks.

This fix:
1. When checking for duplicates of .txt files, also checks for the
   .md version
2. When deleting for replacement, uses the correct filename (.md if
   that's what was stored)

Fixes: langflow-ai#1174
@github-actions github-actions bot added community backend 🔷 Issues related to backend services (OpenSearch, Langflow, APIs) bug 🔴 Something isn't working. and removed community labels Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend 🔷 Issues related to backend services (OpenSearch, Langflow, APIs) bug 🔴 Something isn't working.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Overwrite functionality unavailable for .txt files

1 participant