Next.js Discord

Discord Forum

Server actions - storing files in a temporary location?

Unanswered
Turkish Angora posted this in #help-forum
Open in Discord
Turkish AngoraOP
I have a server action that receives some files as FormData.

I need to provide the path to the file when uploading to cloudinary but to do this I need to store the file temporarily.

The tmp directory doesn't seem to be available to server actions?

1 Reply

Original message was deleted
This is an express example and irrelevant to the question. As someone else already told you in an unrelated thread, we don’t welcome AI generated answers here, and if you do get AI assistance to produce the answer please ensure the answer is correct, relevant to the question, and well formatted