========================================
YOUR CORRECTED CURL COMMAND
========================================

❌ WHAT YOU HAD (BROKEN):
--------------------------
curl --location 'localhost:8000/api/sections/footer' \
--header 'Authorization: Bearer YOUR_TOKEN' \
--form 'hero_image=@"postman-cloud:///1f00d371..."' \              ← ❌ NOT A VALID FILE PATH
--form 'hero_images[1=@"/C:/Users/gamer/Downloads/file1.webp"' \  ← ❌ MISSING ] HERE
--form 'hero_images[2]=@"/C:/Users/gamer/Downloads/file2.jpeg"'


✅ CORRECTED VERSION:
--------------------------
curl --location 'localhost:8000/api/sections/footer' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer kOEyps2WyRn1tsZyIEHXUzg65VYL8I9ACWJ1Rn1q298fe5eb' \
--form 'hero_image=@"C:/Users/gamer/Downloads/shutterstock_141945937.webp"' \
--form 'hero_images[]=@"C:/Users/gamer/Downloads/golden-retriever-dog-breed-info.jpeg"' \
--form 'hero_images[]=@"C:/Users/gamer/Downloads/shutterstock_141945937.webp"'


✅ ALTERNATIVE (WITH INDICES):
--------------------------
curl --location 'localhost:8000/api/sections/footer' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer kOEyps2WyRn1tsZyIEHXUzg65VYL8I9ACWJ1Rn1q298fe5eb' \
--form 'hero_image=@"C:/Users/gamer/Downloads/shutterstock_141945937.webp"' \
--form 'hero_images[0]=@"C:/Users/gamer/Downloads/golden-retriever-dog-breed-info.jpeg"' \
--form 'hero_images[1]=@"C:/Users/gamer/Downloads/shutterstock_141945937.webp"'


✅ WITH ADDITIONAL DATA:
--------------------------
curl --location 'localhost:8000/api/sections/footer' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer kOEyps2WyRn1tsZyIEHXUzg65VYL8I9ACWJ1Rn1q298fe5eb' \
--form 'title="Footer Section"' \
--form 'description="Footer with images"' \
--form 'hero_image=@"C:/Users/gamer/Downloads/shutterstock_141945937.webp"' \
--form 'hero_images[]=@"C:/Users/gamer/Downloads/golden-retriever-dog-breed-info.jpeg"' \
--form 'hero_images[]=@"C:/Users/gamer/Downloads/shutterstock_141945937.webp"' \
--form 'active=true'


========================================
EXPECTED SUCCESS RESPONSE:
========================================
{
    "success": true,
    "message": "Section 'footer' updated successfully",
    "data": {
        "id": 2,
        "name": "footer",
        "body": {
            "title": "Footer Section",
            "description": "Footer with images",
            "hero_image": "http://localhost:8000/storage/sections/abc123.webp",
            "hero_images": [
                "http://localhost:8000/storage/sections/def456.jpeg",
                "http://localhost:8000/storage/sections/ghi789.webp"
            ],
            "active": true
        },
        "added_by": 1,
        "updated_by": { ... },
        "created_at": "...",
        "updated_at": "..."
    }
}


========================================
KEY DIFFERENCES TO NOTE:
========================================
1. ✅ hero_images[] - Array notation with CLOSING BRACKET
2. ✅ Real file paths - Not "postman-cloud:///"
3. ✅ Multiple hero_images in response (not just one)


========================================
AVAILABLE FILES IN YOUR DOWNLOADS:
========================================
- shutterstock_141945937.webp
- golden-retriever-dog-breed-info.jpeg
- AR3566-002_2.webp
- AR3566-002_4.webp
- img_0 (1).webp
- img_0 (2).webp


========================================
QUICK TEST COMMANDS:
========================================

# 1. Test single image first:
curl -X POST 'localhost:8000/api/sections/test-single' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-F 'test_image=@"C:/Users/gamer/Downloads/shutterstock_141945937.webp"'

# 2. Test multiple images:
curl -X POST 'localhost:8000/api/sections/test-multiple' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-F 'test_images[]=@"C:/Users/gamer/Downloads/shutterstock_141945937.webp"' \
-F 'test_images[]=@"C:/Users/gamer/Downloads/golden-retriever-dog-breed-info.jpeg"'

# 3. View the result:
curl 'localhost:8000/api/sections/test-multiple'


========================================
POWERSHELL USERS:
========================================
If using PowerShell, run the provided script:
    .\test-upload.ps1

Or use backticks (`) instead of backslashes (\) for line continuation.



