Upload image from server to uploadthing

Hello! My image is generated on the server, from user text input. Is it possible to upload the image directly from the server to uploadthing? It looks like to me uploadthing is only really used for users to upload, not the server? Thanks in advance!
4 Replies
fox-foxivich
fox-foxivich12mo ago
No, it’s not possible due to security
Gaden
Gaden12mo ago
wut thats kinda weird? security how? im the one in control of the server side I ended up just using an r2 bucket
fox-foxivich
fox-foxivich12mo ago
But like didn’t you mean the upload button on the frontend side? On the frontend side you can’t preupload the file there
Gaden
Gaden12mo ago
Sorry for super slow reply. The user upload text data to serverless, serverless then generates an image from it, and uploads it to an r2 bucket