# Auto Sync Images from frontend/public/images to Admin Media Library

This version syncs files from:

frontend/public/images
frontend/public/brochures

to Strapi Media Library when backend starts.

## How to use
1. Paste image in:
   frontend/public/images

2. Use these names for auto product linking:
   jh6-390.jpg
   jh6-280.jpg
   j5p-420.jpg
   j5p-220.jpg
   j5m-280.jpg
   j5m-220.jpg
   tiger-vh.jpg
   tiger-vr.jpg

Supported formats:
jpg, jpeg, png, webp, avif, svg

3. Restart backend:
   cd backend
   npm run develop

4. Open Admin:
   http://localhost:1337/admin

5. Go to Media Library.
   The pasted images will be visible there.

## Important
If you replace an existing file with the same name, Strapi may keep the old uploaded copy.
Best practice:
- Upload new image with new name, or
- Delete old file from Media Library, then restart backend.

## Product auto-link
If Product / Model exists and its main image is empty, this sync will link matching image by slug:
jh6-390.jpg -> JH6 390 product
tiger-vh.jpg -> Tiger VH product

If product already has an image, it will not overwrite it automatically to avoid accidental changes.
