Skip to content

[Feature]: Allow drag and drop text files into the prompt builder as context #2139

Description

@jorgeluiso

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I am describing a concrete problem or use case, not just a vague idea.

Area

apps/web

Problem or use case

I wanted to import/copy an existing script into my project. In order to do that I wanted to drag and drop a text file into the Prompt input but got the error:

Unsupported file type for 'deploy.sh'. Please attach image files only.

Proposed solution

Allowing text files to be dropped into the context could accelerate prompt building. It could be referenced as a path or directly import the file content.

Why this matters

It is common to bring snippets from other projects into a working project.

Smallest useful scope

Converting the file dropped into a path so that the LLM can read(...) it

Alternatives considered

No response

Risks or tradeoffs

No response

Examples or references

No response

Contribution

  • I would be open to helping implement this.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementRequested improvement or new capability.needs-triageIssue needs maintainer review and initial categorization.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions