8000 feat: upload video backgrounds · Issue #3371 · homarr-labs/homarr · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
feat: upload video backgrounds #3371
Open
@spkesDE

Description

@spkesDE

Describe the bug

When attempting to upload a video file as a background, the upload fails with a 400 Bad Request and the following error

TRPCClientError: [
  {
    "code": "custom",
    "params": {
      "i18n": {
        "key": "invalidFileType",
        "params": {
          "expected": "one of image/png, image/jpeg, image/webp, image/gif, image/svg+xml"
        }
      }
    },
    "path": [
      "file"
    ],
    "message": "Invalid input"
  }
]

This indicates the upload validation currently only accepts image file types and not video types like video/mp4.

Steps to reproduce

  1. Try uploading an .mp4 file as a board background.
  2. Observe a 400 error response from media.uploadMedia.
  3. Check console logs for TRPCClientError: invalidFileType.

Impact

Medium. users cannot currently upload video backgrounds

Additional information

Kind of related to #3370

Version

1.23.0

Installation method

Docker Compose

Browser

Brave

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0