Files
upstream-mattermost/server/tests/test-attachments.md
upstream-mirror 240db4e2a7
Some checks failed
Server CI / Postgres (shard 0) (push) Has been skipped
Server CI / Postgres (shard 3) (push) Has been skipped
BuildEnv Docker Image / build-image (push) Failing after 4s
BuildEnv Docker Image / build-image-fips (push) Failing after 4s
Migration Review & Release Notes / Generate migration review & release notes (push) Failing after 3s
Server CI / Build Environment (push) Failing after 3s
Server CI / Postgres (shard 1) (push) Has been skipped
Tools CI / check-style (mattermost-govet) (push) Failing after 4s
Server CI / Postgres (shard 2) (push) Has been skipped
Tools CI / check-style (mmgotool) (push) Failing after 3s
Server CI / Elasticsearch v8 Compatibility (push) Has been skipped
Server CI / OpenSearch v2 Compatibility (push) Has been skipped
Server CI / Postgres FIPS (shard 0) (push) Has been skipped
Tools CI / Test (mattermost-govet) (push) Failing after 3s
Server CI / Postgres FIPS (shard 1) (push) Has been skipped
Server CI / Postgres FIPS (shard 2) (push) Has been skipped
Tools CI / Test (mmgotool) (push) Failing after 3s
Server CI / Postgres FIPS (shard 3) (push) Has been skipped
Server CI / Run mmctl tests (push) Has been skipped
Server CI / Run mmctl tests (FIPS) (push) Has been skipped
Server CI / Merge Postgres Test Results (push) Has been skipped
Server CI / Merge Postgres FIPS Test Results (push) Has been skipped
Server CI / Check backport migrations (push) Has been skipped
Server CI / Check generated files (push) Has been skipped
Server CI / check-style (push) Has been skipped
Server CI / Vet API (push) Has been skipped
Server CI / Build mattermost server app (push) Has been skipped
Server CI / Server CI Complete (push) Failing after 2s
Server CI / Server CI Artifacts (push) Has been skipped
Server CI / Sentry Upload (push) Has been skipped
Server CI / Server CI Report (push) Failing after 5m1s
Server CI Nightly Race / Race Detector (push) Has been skipped
CodeQL / Analyze (go) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Webapp CI Cache Warm / Warm Webapp node_modules Cache (push) Has been cancelled
E2E CI Cache Warm / Warm E2E npm Registry Cache (push) Has been cancelled
API / build (push) Has been cancelled
Web App CI / check-types (push) Has been cancelled
Web App CI / check-lint (push) Has been cancelled
Web App CI / check-i18n (push) Has been cancelled
Web App CI / check-external-links (push) Has been cancelled
Web App CI / test (platform) (push) Has been cancelled
Web App CI / test (mattermost-redux) (push) Has been cancelled
Web App CI / test (channels shard 1/4) (push) Has been cancelled
Web App CI / test (channels shard 2/4) (push) Has been cancelled
Web App CI / test (channels shard 3/4) (push) Has been cancelled
Web App CI / test (channels shard 4/4) (push) Has been cancelled
Web App CI / upload-coverage (push) Has been cancelled
Web App CI / build (push) Has been cancelled
YAML Lint / yamllint (push) Has been cancelled
Push mirrored docker images / cd/Push mirrored docker images (push) Has been cancelled
docs-cd / Build and deploy docs (push) Has been cancelled
Docs CI / build (push) Has been cancelled
E2E Cache Warm: Cypress deps / Warm Cypress deps cache (push) Has been cancelled
Scorecards supply-chain security / Scorecard analysis (push) Has been cancelled
Server CI Weekly / Postgres FIPS (push) Has been skipped
Server CI Weekly / Run mmctl tests (FIPS) (push) Has been skipped
Server CI Weekly / Postgres with binary parameters (push) Has been skipped
Server CI Weekly / Build Environment (push) Failing after 1s
Server CI Cache Warm / Warm Go Module and Build Cache (push) Failing after 2s
Server CI Nightly Race / Build Environment (push) Failing after 1s
snapshot of https://github.com/mattermost/mattermost.git (master, 2026-09-16; blobs > 131072B omitted)
2026-09-16 00:29:55 +05:00

6.4 KiB

Testing Files and Attachments

This test contains instructions for the core team to manually test common attachment types. All files for testing are stored in the mm_file_testing Drive folder. Follow these instructions:

  1. Download the entire mm_file_testing folder.
  2. Drag and drop each file type into Mattermost to upload it (upload some as multiple attachments on the same post)
  3. Post the file attachment

Notes:

  • All file types should upload and post.
  • Read the expected for details on the behavior of the thumbnail and preview window.
  • The expected behavior of video and audio formats depends on the operating system, browser and plugins. View the permalinks to the Public Test Channel on Pre-Release Core to see the expected cases.
  • If the browser can play the media file, media player controls should appear. If the browser cannot play the file, it should appear as a regular attachment without the media controls.

Images

JPG
Images/JPG.jpg
Expected: Scaled thumbnail & preview window
Permalink

PNG
Images/PNG.png
Expected: Scaled thumbnail & preview window
Permalink

BMP
Images/BMP.bmp
Expected: Scaled thumbnail & preview window
Permalink

GIF
Images/GIF.gif
Expected: Scaled thumbnail & preview window. GIF should auto-play in the preview window.
Permalink

TIFF
Images/TIFF.tiff
Expected: Generic attachment thumbnail & preview window
Permalink

PSD
Images/PSD.psd
Expected: Generic attachment thumbnail & preview window
Permalink

Documents

PDF Files
Documents/PDF.pdf
Expected: Generic PDF thumbnail. File previewer shows first 5 pages of the PDF.
Permalink

Excel
Documents/Excel.xlsx
Expected: Generic Excel thumbnail & preview window.
Permalink

PPT
Documents/PPT.pptx
Expected: Generic Powerpoint thumbnail & preview window.
Permalink

Word
Documents/Word.docx
Expected: Generic Word thumbnail & preview window.
Permalink

Text
Documents/Text.txt
Expected: Generic code thumbnail & file previewer. Permalink

Videos

MP4
Videos/MP4.mp4
Expected: Generic video thumbnail, view Permalink for preview window behavior. Expected depends on the operating system, browser and plugins.
Permalink

AVI
Videos/AVI.avi
Expected: Generic video thumbnail, view Permalink for preview window behavior. Expected depends on the operating system, browser and plugins.
Permalink

MKV
Videos/MKV.mkv
Expected: Generic video thumbnail, view Permalink for preview window behavior. Expected depends on the operating system, browser and plugins.
Permalink

MOV
Videos/MOV.mov
Expected: Generic video thumbnail, view Permalink for preview window behavior. Expected depends on the operating system, browser and plugins.
Permalink

MPG
Videos/MPG.mpg
Expected: Generic video thumbnail, view Permalink for preview window behavior. Expected depends on the operating system, browser and plugins.
Permalink

Webm
Videos/WEBM.webm
Expected: Generic video thumbnail, view Permalink for preview window behavior. Expected depends on the operating system, browser and plugins.
Permalink

WMV
Videos/WMV.wmv
Expected: Generic video thumbnail, view Permalink for preview window behavior. Expected depends on the operating system, browser and plugins.
Permalink

Audio

MP3
Audio/MP3.mp3
Expected: Generic audio thumbnail & playable preview window
Permalink

M4A
Audio/M4a.m4a
Expected: Generic audio thumbnail, view Permalink for preview window behavior. Expected depends on the operating system, browser and plugins.
Permalink

AAC
Audio/AAC.aac
Expected: Generic audio thumbnail, view Permalink for preview window behavior. Expected depends on the operating system, browser and plugins.
Permalink

FLAC
Audio/FLAC.flac
Expected: Generic audio thumbnail, view Permalink for preview window behavior. Expected depends on the operating system, browser and plugins.
Permalink

OGG
Audio/OGG.ogg
Expected: Generic audio thumbnail, view Permalink for preview window behavior. Expected depends on the operating system, browser and plugins.
Permalink

WAV
Audio/WAV.wav
Expected: Generic audio thumbnail, view Permalink for preview window behavior. Expected depends on the operating system, browser and plugins.
Permalink

WMA
Audio/WMA.wma
Expected: Generic audio thumbnail, view Permalink for preview window behavior. Expected depends on the operating system, browser and plugins.
Permalink