DEV Community

Discussion on: Uploading images to Cloudinary with a React app.

Collapse
 
sajaswalgah profile image
SajaSwalgah

when refreshing the page the uploaded photos disappear, how can i solve this problem

Collapse
 
emkaydauda profile image
Maaruf Dauda

Hi Saga,

I'm not sure why this would happen, but can you confirm that you have a useEffect call that fetches the images?

Collapse
 
ogheneovo12 profile image
ogheneovo12

yeah, but the fetch functions are being called, but the urlpath generated is wrong, returns 404

Collapse
 
alextrandafir profile image
alex-trandafir

You need to save the id in a state probably

Collapse
 
mmichaud3 profile image
mmichaud3

ever come up with a solution for this?