User image: support FormData / Octet Stream upload options #2760

Open
opened 2026-03-13 10:18:42 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @MarkLee425 on GitHub (Jan 24, 2026).

Is this suited for github?

  • Yes, this is suited for github

Yes, now if I have to upload a raw avatar image to update user table. I have to manually create an endpoint to do that, since better auth only supports URL for image.

Describe the solution you'd like

Add options for image like
image: { upload_method: "url" | "formdata" | "octet-stream" storage: "database" | "s3" // create a s3 adapter for that }

Describe alternatives you've considered

Cant think of any

Additional context

No response

Originally created by @MarkLee425 on GitHub (Jan 24, 2026). ### Is this suited for github? - [ ] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. Yes, now if I have to upload a raw avatar image to update user table. I have to manually create an endpoint to do that, since better auth only supports URL for image. ### Describe the solution you'd like Add options for image like `image: { upload_method: "url" | "formdata" | "octet-stream" storage: "database" | "s3" // create a s3 adapter for that }` ### Describe alternatives you've considered Cant think of any ### Additional context _No response_
GiteaMirror added the enhancement label 2026-03-13 10:18:42 -05:00
Author
Owner

@better-auth-agent[bot] commented on GitHub (Jan 24, 2026):

Thank you for your feature request regarding support for FormData or Octet Stream upload options. Currently, Better Auth only supports image URLs for uploads, and there is an open issue discussing the possibility of adding support for different methods such as "formdata" and "octet-stream" along with storage options like "database" or "s3" [1].

To address this, I recommend following the open issue for updates and contributing any further insights or specifics you have. Tagging @better-auth-agent might also help you get more direct interaction on the matter!

What other features would you like to see implemented in Better Auth?

If you need more help, tag @better-auth-agent in a comment so I can respond.

DiagramDiscordGitHub

Diagram Join Star

@better-auth-agent[bot] commented on GitHub (Jan 24, 2026): Thank you for your feature request regarding support for FormData or Octet Stream upload options. Currently, Better Auth only supports image URLs for uploads, and there is an open issue discussing the possibility of adding support for different methods such as "formdata" and "octet-stream" along with storage options like "database" or "s3" [[1]](https://github.com/better-auth/better-auth/pull/6013). To address this, I recommend following the open issue for updates and contributing any further insights or specifics you have. Tagging @better-auth-agent might also help you get more direct interaction on the matter! What other features would you like to see implemented in Better Auth? _If you need more help, tag @better-auth-agent in a comment so I can respond._ <!-- bot:webhook reply v1 --> [Diagram](https://repodiagrams.s3.eu-north-1.amazonaws.com/better-auth_ultra_detailed_interactive.html) • [Discord](https://discord.gg/better-auth) • [GitHub](https://github.com/better-auth/better-auth) [![Diagram](https://img.shields.io/badge/Diagram-2b3137?style=flat-square)](https://repodiagrams.s3.eu-north-1.amazonaws.com/better-auth_ultra_detailed_interactive.html) [![Join](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&style=flat-square)](https://discord.gg/better-auth) [![Star](https://img.shields.io/badge/star-181717?logo=github&logoColor=white&style=flat-square)](https://github.com/better-auth/better-auth)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#2760