Skip to content

Bug[AI Chats]: Missing file type validation allows incorrect uploads in image and file sections #175

@pluuto19

Description

@pluuto19

The system accepts any file type regardless of context. Non-image files can be uploaded in image-only sections, and image files can be uploaded in standard file upload sections. There is no type validation or restriction enforced during the upload process.

To Reproduce

  • Click on "Images" under "Attachments"
  • Select "." from the dropdown next to File Name
  • Attempt to upload a non-image file (e.g., .txt or .java).
  • Observe that the upload succeeds without any validation error.
  • Repeat in a file upload section using an image file but click on "files" under "attachments".

Expected behavior: The system should validate file types and restrict uploads based on type of upload selected.

OS: Windows 10
Browser: Chrome
Version: 141.0.7390.123 (Official Build) (64-bit)

bug.39.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions