# Fix: POST Data Too Large Error

## Quick Fix (Recommended)

If `.htaccess` doesn't work, you need to edit PHP configuration directly in WAMP:

### Steps:

1. **Open WAMP Menu** → Click on PHP → `php.ini`

2. **Find and edit these lines:**
   ```
   upload_max_filesize = 10M
   post_max_size = 12M
   max_execution_time = 300
   max_input_time = 300
   ```

3. **Save the file**

4. **Restart WAMP** (Right-click WAMP icon → Restart All Services)

5. **Verify the changes:**
   ```bash
   php -i | findstr "upload_max_filesize post_max_size"
   ```

## Alternative: Edit php.ini via WAMP Menu

1. Left-click **WAMP icon** in system tray
2. Go to **PHP** → **php.ini**
3. Search for:
   - `upload_max_filesize`
   - `post_max_size`
4. Change both values to at least `10M` and `12M` respectively
5. Save and restart Apache

## Current Limits

- `upload_max_filesize`: Should be at least **10M**
- `post_max_size`: Should be at least **12M** (must be greater than `upload_max_filesize`)
- `max_execution_time`: **300** seconds (for large uploads)
- `max_input_time`: **300** seconds

## Verify After Changes

Run this command to check current settings:
```bash
php -i | findstr "upload_max_filesize post_max_size"
```

Expected output:
```
upload_max_filesize => 10M => 10M
post_max_size => 12M => 12M
```

