node.js - Generate objectID client side to be save into db -


like blog system, each post can have media files. retain ux, want user upload images of post , save post.

but need id name files /filename.jpg, how can generate id using mongodb on client side won't clash id generated on server (nodejs) also.


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -