How can i show file upload progress using Nextjs api and third party api?
Unanswered
Little yellow ant posted this in #help-forum
Little yellow antOP
I have a third party api to upload image which i'm using inside nextjs /app/api/file/route.ts for that i call /api/file from client.
So, now i want to send callback functino also from client which update the progress of image upload.
Is there any way to do it?
So, now i want to send callback functino also from client which update the progress of image upload.
Is there any way to do it?
4 Replies
you really can't send callback function from client to api
but you can update whatever progress that is after the api call is finished
Little yellow antOP
In that case i have to use third party file upload api in client side using axios.
do it, who's stopping you?