Block Video Uploads
On this page
Prevent users from uploading video files to your media library. Save storage space, reduce bandwidth usage, and enforce policies that require videos be hosted externally.
Use Cases
- Prevent large video uploads on shared hosting with limited storage or bandwidth
- Force content creators to use YouTube, Vimeo, or other video platforms
- Protect site performance by avoiding self-hosted video playback
How It Works
When a user tries to upload a video file:
- The file extension and mime type are checked
- If it’s a video format, upload is blocked
- User sees your custom error message
- Non-video files upload normally
Where to Find It
Configure in Switchboard → Media → Block Video Uploads. The settings panel lets you control who is blocked and what message they see.
Settings
Block Administrators Too
| Setting | Description |
|---|---|
| Checked | Everyone is blocked, including administrators |
| Unchecked | Administrators can still upload videos; everyone else is blocked |
This setting only applies when no specific roles are selected below.
Block for These Roles
Select specific user roles to block. When roles are selected:
- Only selected roles are blocked — everyone else can upload videos
- The “Block administrators too” checkbox is ignored
- You can select Administrator to include admins in the block
Leave this empty to use the checkbox behavior instead.
Error Message
Customize the message users see when their upload is blocked.
Default: “Video uploads are not allowed.”
Consider something helpful like:
- “Please upload videos to YouTube and embed them in your content.”
- “Video uploads are disabled. Contact your administrator for help.”
Blocked Video Formats
The following formats are blocked:
| Extension | Format |
|---|---|
.mp4, .m4v | MPEG-4 Video |
.mov, .qt | QuickTime |
.avi | Audio Video Interleave |
.wmv | Windows Media Video |
.flv | Flash Video |
.webm | WebM |
.mkv | Matroska |
.mpeg, .mpg, .mpe | MPEG |
.3gp, .3gpp, .3g2, .3gp2 | 3GPP Mobile |
.ogv | Ogg Video |
Both file extension and mime type are checked for security.
Best Practices
Encourage external hosting. Videos consume significant bandwidth and storage. Services like YouTube and Vimeo handle video encoding, delivery, and playback optimization far better than most WordPress hosts.
Why Block Video Uploads?
| Concern | Impact |
|---|---|
| Storage costs | A single 1080p video can be 100MB-1GB |
| Bandwidth | Self-hosted videos consume bandwidth on every view |
| Performance | Video playback can strain server resources |
| User experience | External platforms offer better players and adaptive streaming |
Alternative: Embed Videos
Instead of uploading videos, users can:
- Upload to YouTube, Vimeo, or similar platforms
- Copy the video URL or embed code
- Paste directly into WordPress content (auto-embed)
- Or use a video block with the embed URL
Role-Based Examples
Block Everyone Except Admins
- Leave “Block for These Roles” empty
- Uncheck “Block administrators too”
Result: Only administrators can upload videos.
Block Only Editors and Authors
- Select “Editor” and “Author” in the role selector
- Leave Administrator unselected
Result: Editors and Authors are blocked; Admins and other roles can upload.
Block Absolutely Everyone
- Check “Block administrators too”
- Or select Administrator in the role selector
Result: No one can upload videos, period.
FAQ
Does this delete existing videos?
No. This only prevents new uploads. Videos already in your media library remain accessible.Can users still embed videos from YouTube?
Yes. Embedding videos from external platforms works normally. Only direct file uploads are blocked.What if I need to upload one video?
Temporarily disable the module, upload your video, then re-enable. Or if you’re an admin and haven’t checked “Block administrators too,” you can upload without disabling.Are animated GIFs blocked?
No. GIFs are image files, not videos, and are not affected by this module.Does this affect the block editor video block?
Users can still add video blocks and embed external videos. Only direct uploads from their computer are blocked.Will users see an error or just nothing happen?
Users see your custom error message in the upload interface, clearly explaining why the upload was rejected.Get access to all 147 modules with a single license