Next.js Discord

Discord Forum

Create CRUD UPDATE for an image cover issues

Unanswered
American Curl posted this in #help-forum
Open in Discord
American CurlOP
Hi everyone, i'm struggling to create an update form for a cover.

At first, when i create the store, i upload a picture, create the image file, then store the image path in the database.
Also once the image is uploaded in the input file, i display a preview of the cover.
And it works well.

But now when i want to update this store, i can't mage the image cove appear.
i'm getting the url from the database, but i have to convert it as a object as File type, to store it again in files.

I don't really how to process to images updates.

0 Replies