Simple File Upload Limiter
Simple File Upload Limiter
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.
Installation
- Upload the
simple-file-upload-limiterfolder to the/wp-content/plugins/directory. - Activate the plugin through the ‘Plugins’ menu in WordPress.
- Go to Settings > File Upload Limiter to configure the upload limits.
Faq
Yes. You can set individual upload limits for images, documents, audio, video, and other file types from the plugin’s settings page.
The upload is refused and the user sees an error message that includes the file type and the allowed 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.
Reviews
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.
