Block Video Uploads

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:

  1. The file extension and mime type are checked
  2. If it’s a video format, upload is blocked
  3. User sees your custom error message
  4. 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

SettingDescription
CheckedEveryone is blocked, including administrators
UncheckedAdministrators 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:

ExtensionFormat
.mp4, .m4vMPEG-4 Video
.mov, .qtQuickTime
.aviAudio Video Interleave
.wmvWindows Media Video
.flvFlash Video
.webmWebM
.mkvMatroska
.mpeg, .mpg, .mpeMPEG
.3gp, .3gpp, .3g2, .3gp23GPP Mobile
.ogvOgg 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?

ConcernImpact
Storage costsA single 1080p video can be 100MB-1GB
BandwidthSelf-hosted videos consume bandwidth on every view
PerformanceVideo playback can strain server resources
User experienceExternal platforms offer better players and adaptive streaming

Alternative: Embed Videos

Instead of uploading videos, users can:

  1. Upload to YouTube, Vimeo, or similar platforms
  2. Copy the video URL or embed code
  3. Paste directly into WordPress content (auto-embed)
  4. Or use a video block with the embed URL

Role-Based Examples

Block Everyone Except Admins

  1. Leave “Block for These Roles” empty
  2. Uncheck “Block administrators too”

Result: Only administrators can upload videos.

Block Only Editors and Authors

  1. Select “Editor” and “Author” in the role selector
  2. Leave Administrator unselected

Result: Editors and Authors are blocked; Admins and other roles can upload.

Block Absolutely Everyone

  1. Check “Block administrators too”
  2. 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.
PRO

Get access to all 147 modules with a single license

Upgrade to Pro