What is the best practice to store multiple images in one field.
I want to store the multiple main banner images in a field. I'm getting these images as base64 encoded.I need to decode it into normal images then I need to save the images in the field.
wont give you a unique filename ... you need to use time().
now ... answering to your question ... the answer is ... DEPENDS.
but what I can imagine is that you are building a pure backend system (because of your response json code) ... So save the image file paths in a JSON string in one field. That will work prefectly.
later when you recover the info, just apply a JSON.parse in your front end.