Simple Upload Weight Limit

描述

Simple Upload Weight Limit is a minimalist and essential utility for multi-author blogs, client websites, and community sites. It prevents users from exhausting hosting space and bandwidth by blocking the upload of unoptimized, oversized files.

Unlike complex membership plugins, this tool focuses on one thing: keeping your Media Library clean and your server performance high.

Features

  • Custom KB Limit: Easily set your preferred limit (e.g., 500KB or 2048KB) via the settings page.
  • Role-Based Protection: The restriction automatically excludes Administrators, ensuring you always have full control.
  • Smart Feedback: Provides clear, translatable error messages to users when a file exceeds the limit.
  • Performance First: No background processes or bloat. Only clean, secure PHP that runs only during the upload process.

屏幕截图

  • The minimalist settings page where you can define the maximum file size in KB.
  • Example of the error message displayed in the Media Library when an unoptimized file exceeds the limit.

安装

  1. Upload the simple-upload-weight-limit folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Go to Settings > Upload Weight Limit to configure your maximum file size.

评价

此插件暂无评价。

贡献者及开发者

「Simple Upload Weight Limit」是开源软件。 以下人员对此插件做出了贡献。

贡献者

更新日志

1.0.0

  • Initial release.
  • Added secure data sanitization and output escaping.
  • Role-based exclusion for Administrators.