Skip to content

Feature: Media, Link & Code Sharing in Community Chat #16

@Akash504-ai

Description

@Akash504-ai

Description

Enable users to share links, images, PDFs, and code snippets in community chat to improve collaboration and discussion.

Features

  1. Link Detection

    • Auto-detect URLs in messages.
    • YouTube → show preview.
    • GitHub / articles / job posts → clickable links.
  2. Image Upload

    • Users can share screenshots, UI designs, diagrams, etc.
  3. PDF Upload

    • Share resumes, documentation, notes, or research papers.
  4. Code Snippets

    • Display formatted code blocks for developer discussions.

Backend Changes

Extend the message model:

message: String
type: "text" | "image" | "pdf" | "link"
fileUrl: String

Tech Suggestion

  • Cloudinary → image storage
  • Cloudinary / S3 → PDF storage
  • Frontend regex → URL detection

Acceptance Criteria

  • Links are automatically detected and clickable.
  • Users can upload and view images and PDFs.
  • Code snippets render in formatted blocks.
  • Messages sync in real-time across community members.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions