Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bhai ye cover image kaise kaam kar raha hai batana #1

Open
araj59197 opened this issue Jan 27, 2024 · 1 comment
Open

bhai ye cover image kaise kaam kar raha hai batana #1

araj59197 opened this issue Jan 27, 2024 · 1 comment

Comments

@araj59197
Copy link

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

@ladunjexa
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants