pingdotgg / uploadthing

File uploads for modern web devs
https://uploadthing.com
MIT License
4.27k stars 319 forks source link

feat: a way to pass token from headers #1062

Open zbeyens opened 1 week ago

zbeyens commented 1 week ago

Describe the feature you'd like to request

When building demo applications or documentation examples, it would be helpful to allow users to test the upload functionality with their own API tokens without modifying environment variables. This would enable interactive demos where users can input their API keys through a UI.

Currently, the token can only be set through:

image

Describe the solution you'd like to see

Allow the token to be dynamically set from request headers.

Additional information

No response

๐Ÿ‘จโ€๐Ÿ‘งโ€๐Ÿ‘ฆ Contributing