We are developing photo gallery which is storing huge amount of photos. We have choosed MongoDB's GridFS for image storage. Every thing looks fine.
But every time when user has to delete the photo we thought of deleting particular photo based on its "ObjectId"
, but Sending ObjectId to client side looks ugly because of its length. Deleting based on photo name is not possible because its not unique.
So how do we prettify
the ObjectId
to send it to client side?