Skip to content

feat : Support file uploads #56 #122

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

Neulhan
Copy link
Contributor

@Neulhan Neulhan commented Apr 28, 2025

There might have been other plans regarding this issue (#56),
but I needed file upload support for a project I’m working on, so I went ahead and implemented it.
While I was at it, I thought it might be useful here too, so I’m submitting this pull request.

If you have any feedback or see anything that needs improvement, feel free to let me know — it’s very welcome!
Implementation: Used MessageContentImageUrl from MessageContentComplex in langgraph.
Design Reference: Took a lot of inspiration from ChatGPT.
Testing: Verified functionality using the React Agent Template from langgraph.
Preview: Deployed a preview version on Vercel for easier review: https://agent-chat-ui-chi.vercel.app/

ScreenShots

  1. File Upload Support & Display Uploaded Files Above Input Textarea
Before After1 After2
  1. Uploaded Files are Displayed in the Human Message Component
Before After

Copy link

vercel bot commented Apr 28, 2025

@Neulhan is attempting to deploy a commit to the LangChain Team on Vercel.

A member of the Team first needs to authorize it.

@ckemmler
Copy link

awesome!

@wuhaolei455
Copy link

so cool! I add drag and drop support, and have given pr to your repo, please check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants