=== Simple File Upload Limiter ===
Contributors: albertoreineri
Tags: upload, file, limit, size, restrict
Requires at least: 5.0
Tested up to: 7.1
Requires PHP: 7.0
Stable tag: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Set maximum upload sizes for different file types in WordPress: images, documents, audio, video and everything else.

== Description ==

Simple File Upload Limiter lets you set a different maximum upload size for each kind of file, right from the WordPress admin. Users can't upload files that exceed the limits you define, which helps you keep your server resources and media library under control.

**Features:**

* Separate limits for images, documents, audio, video and other file types.
* Limits defined in kilobytes (KB).
* One simple settings page under Settings > File Upload Limiter.
* A clear error message tells the user which limit was exceeded.

Looking to limit uploads by user role instead of by file type? Take a look at [Simple Upload Weight Limit](https://wordpress.org/plugins/simple-upload-weight-limit/).

== Installation ==

1. Upload the `simple-file-upload-limiter` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Go to **Settings > File Upload Limiter** to configure the upload limits.

== Frequently Asked Questions ==

= Can I set different limits for different file types? =
Yes. You can set individual upload limits for images, documents, audio, video, and other file types from the plugin's settings page.

= What happens if a user tries to upload a file that exceeds the limit? =
The upload is refused and the user sees an error message that includes the file type and the allowed limit.

= Does this raise my server's upload limit? =
No. The limits set here can only be lower than or equal to the maximum your hosting allows (`upload_max_filesize` and `post_max_size` in PHP). They can't raise it.

== Screenshots ==

1. The settings page where you can define upload limits for different file types.

== Changelog ==

= 1.1.0 =
* Saved limits are now sanitized: one positive whole number per file type.
* Removed the manual translation loading, which WordPress handles automatically for plugins hosted on WordPress.org.
* Added the missing license URI and minimum-version headers.
* Added a gentle, dismissible review request on the settings page (shown after a week).
* Tested with WordPress 7.1.

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.1.0 =
Maintenance release: input sanitization, compatibility with WordPress 7.1.
