Open
Description
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
- Try uploading an .mp4 file as a board background.
- Observe a 400 error response from media.uploadMedia.
- 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
Type
Projects
Status
Todo