You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What do you think is the best way for simple images sharing in chat app using this package?
upload image & create new message with image name and some prefix to determine that it is image, not a simple message. It means 1 message = 1 image.
Separate attachments model. Upload images as attachments & attach them to some message with pivot table. 1 message + multiple images attached.
Use tags inside a message with image names like [img-name] and covert them to images in frontend. 1 message + multiple images attached.
Or maybe something else?
The text was updated successfully, but these errors were encountered:
I'd also go with option 2, that way you can use the attachments any way you want and also implement them throughout the app if needed - like with Polymorphic Relations (adding attachments to posts, pages, etc) might be helpful.
Hi,
What do you think is the best way for simple images sharing in chat app using this package?
Or maybe something else?
The text was updated successfully, but these errors were encountered: