=== Simple Upload Weight Limit ===
Contributors: simplewplugins
Tags: upload-size, limit-upload, security, media-library, file-size
Requires at least: 5.8
Tested up to: 6.9
Stable tag: 1.0.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Keep your server lean. Set a strict maximum file size for all user uploads except administrators.

== Description ==

**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.

== Installation ==

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.

== Screenshots ==

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

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