best way to handle image upload in t3 stack

I Am trying to upload image to digital ocean space which is similar to s3 bucket

But i would like to do it from the backend
How i approach this before now i create a function on the front-end then i upload them from the front-end straight then return the url location to the backend but am scared of my keys been public

So i want to move the whole upload to thr backend but now i don't know how to implement this how should the images be passed from front-end to backend
Was this page helpful?