Skip to content
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

Upload files to a post policy url directly from the server #7

Open
TimMikeladze opened this issue Aug 8, 2023 · 3 comments
Open

Upload files to a post policy url directly from the server #7

TimMikeladze opened this issue Aug 8, 2023 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@TimMikeladze
Copy link
Owner

next-upload/client/upload only works in the browser, but sometimes you may want to upload a buffer from nodejs.

@TimMikeladze TimMikeladze added the enhancement New feature or request label Aug 8, 2023
@TimMikeladze TimMikeladze added the help wanted Extra attention is needed label Nov 4, 2023
@8times4
Copy link

8times4 commented Apr 18, 2024

Hey Tim, would this be also required in order for tRPC to work with next-upload?

@TimMikeladze
Copy link
Owner Author

I'm not too familiar with how tRPC works. If the you're talking about transmitting a file from a trpc client to a trpc server, then the answer is no, as that's opposite of how next-upload is built to work.

By the way for this issue, I'm 99% sure it already works, it just needs to be documented.

@8times4
Copy link

8times4 commented Apr 18, 2024

Basically I was just trying to put the upload function behind a mutation endpoint within trpc, so that the upload request itself is hidden from the client as the client just calls uploadImage with the files, but I guess that’s not feasible then. Thank you though :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants