It's time to ditch Medium for good! 🌈⚡️

Introducing Devblog by Hashnode. Blog on your domain for FREE. Highly customizable and optimized for developers.

Learn more

My website allows guest/anonymous users to upload content. What is a way that I can allow them to edit this content without having to create a account?

RE:

Even though they're anonymous users, generate a unique id for each user from the client side itself and save it in cookies with a long expiry.

Whenever someone uploads a file save that unique id along with the file. Now you can allow users to edit the file if its owner is the same as in the cookies.

You can use uuidv4 or something for unique ids

Show all replies

"who uploaded which content" that is what the author of this question wants!

Reply to this…

(7 answers) Take me to the question