=== WP Upload Size ===
Contributors: husainahmedqureshi
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=husain.ahmed25@gmail.com&item_name=Donation%20For%20Plugin
Tags: upload size, media upload, upload limit, max upload size, file size
Requires at least: 5.9
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 2.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Increase the WordPress media upload size limit with MB/GB units, quick presets, and a clear view of PHP server limits.

== Description ==

WordPress and PHP both control how large a file you can upload. **WP Upload Size** lets you set a higher WordPress media upload limit in a few clicks—using MB or GB instead of raw bytes.

= Features =

* Set upload limit in **KB, MB, or GB** (no byte math required)
* **Quick presets**: 32 MB, 64 MB, 128 MB, 256 MB, 512 MB, 1 GB
* One-click **Match PHP max**
* Dashboard showing `upload_max_filesize`, `post_max_size`, `memory_limit`, and the **effective** WordPress limit
* Clear warning when your desired limit is higher than PHP allows
* Never promises more than PHP can accept in the Media Library
* Settings link on the Plugins screen
* Translation-ready (text domain: `wp-upload-size`)

= Important =

This plugin adjusts the WordPress upload size filter. It **cannot** raise PHP limits by itself. If uploads still fail, ask your host to increase `upload_max_filesize` and `post_max_size` in `php.ini` (or use `.user.ini` / hosting panel settings).

= Where to find settings =

Go to **Tools → WP Upload Size** after activating the plugin.

== Installation ==

= Automatic installation =

1. Go to **Plugins → Add New**.
2. Search for **WP Upload Size**.
3. Click **Install Now**, then **Activate**.
4. Open **Tools → WP Upload Size**.
5. Enter a size (for example `64`) and choose **MB**, or use a quick preset.
6. Click **Save upload limit**.

= Manual installation =

1. Upload the `wp-upload-size` folder to `/wp-content/plugins/`.
2. Activate the plugin through the **Plugins** screen.
3. Open **Tools → WP Upload Size** and set your desired limit.

== Frequently Asked Questions ==

= Why does my upload still fail after increasing the limit? =

Your server PHP limits are lower than the file size. Check the **Current limits** panel on the settings page. Raise `upload_max_filesize` and `post_max_size` with your host, then try again.

= Do I still enter the size in bytes? =

No. Starting in 2.1.0 you can enter values in KB, MB, or GB. Existing byte-based settings are kept and shown in a readable unit.

= Does this affect other files on my site? =

No. It only changes the WordPress media upload size limit.

= Will this work on multisite? =

The plugin works on single sites and network-capable installs. On multisite, network upload caps set by the network admin may still apply.

= Can this plugin increase PHP memory or upload limits in php.ini? =

No. Only your hosting environment can change PHP ini values. This plugin makes the WordPress side easy and shows what PHP currently allows.

== Screenshots ==

1. Settings page under Tools → WP Upload Size with current PHP and WordPress limits.
2. Media Library reflecting the updated maximum upload size.

== Changelog ==

= 2.1.0 =
* Redesigned settings UI under Tools → WP Upload Size
* Added KB / MB / GB unit selector (no more raw bytes required)
* Added quick size presets and “Match PHP max”
* Added server limits overview (upload_max_filesize, post_max_size, memory_limit)
* Effective limit is capped at the PHP maximum so Media Library stays accurate
* Warning notice when desired limit exceeds PHP
* Proper Settings API, capability checks, escaping, and sanitization
* GPL-2.0-or-later license header aligned with WordPress.org
* Translation-ready text domain and uninstall cleanup
* Compatibility update: Tested up to WordPress 6.8

= 2.0.2 =
* Maintenance release

= 1.0.0 =
* First release

== Upgrade Notice ==

= 2.1.0 =
Major usability update: set limits in MB/GB, see PHP limits clearly, and avoid Media Library showing sizes PHP cannot accept.
