nextjs14-notion icon indicating copy to clipboard operation
nextjs14-notion copied to clipboard

bhai ye cover image kaise kaam kar raha hai batana

Open araj59197 opened this issue 1 year ago • 1 comments

Screenshot from 2024-01-28 00-46-14 mera nhi aa raha hai

araj59197 avatar Jan 27 '24 19:01 araj59197

Hi @araj59197 ,

the web application use edgestore to handle file uploads, In our database (convex), for each note we have a field called coverImage that holds the url of the image (that comes from the edgestore storage). Uploading, deleting and updating the image is done by trivial logic, with a little "bonus" that lets you replace an existing file with a new one so that the old file deleted, it's a cool built-in feature of edgestore. take a look at the coverImageModal here.

In addition, we have the drag n' drop feature using react-dropzone. see the implementation of singleImageDropzone here.

ladunjexa avatar Jan 28 '24 21:01 ladunjexa