s3 upload fails to delete main entry when using the path property to specify a folder
<!--
Hello 👋 Thank you for submitting an issue.

Before you start, please make sure your issue is understandable and reproducible.
To make your issue readable make sure you use valid Markdown syntax.

https://guides.github.com/features/mastering-markdown/

Please ensure you have also read and understand the contributing guide.

https://github.com/strapi/strapi/blob/main/CONTRIBUTING.md#reporting-an-issue
-->

## Bug report

### Required System information

<!-- Please ensure you are using the Node LTS version (18, 20, or 22) -->
<!-- Strapi v3 is no longer supported, please update to Strapi v4 -->
<!-- If you are reporting a frontend bug please provide error logs after setting STRAPI_ENFORCE_SOURCEMAPS=true in your .env -->
<!-- This environment variable makes frontend errors easier to read and trace -->

- Node.js version: v20.18.0
- Yarn version: 1.22.22
- Strapi version: v4.25.16
- Database: postgres
- Operating system: Docker image
- Is your project Javascript or Typescript: Typescript

<!-- Did you know you can run `yarn strapi report` or `npm run strapi report` to get this information easier? -->

### Describe the bug

It appears a bug has been introduced in the S3 Upload Provider.

When using the `path` parameter to specify `The folder where the file(s) will be uploaded to (only supported on strapi-provider-upload-aws-s3).` (from docs)

The entry is made correctly and I can see the file as well as the responsive formats uploaded in the correct folder in the S3 bucket.

The problem appears when trying to delete said file - for some reason the responsive formats get removed but the main image remains.

### Steps to reproduce the behavior

1. Create an upload using the s3 upload provider and specifying the folder path
2. Attempt to delete said upload
3. Inspect S3 bucket, folder contents
4. Responsive formats are removed but main entry fail remain in bucket.

### Expected behavior

When removing an image entry from Strapi then the file should be remove from the S3 bucket.

### Code snippets

I've looked at the code and it appears the record is missing the correct `path` attribute for the main entry.

See example entry below:
```
{
  "id": 123,
  "name": "fritada.jpg",
  "alternativeText": "",
  "caption": null,
  "width": 2268,
  "height": 4032,
  "formats": {
    "medium": {
      "name": "medium_fritada.jpg",
      "hash": "medium_fritada_eaff4eeea9",
      "ext": ".jpg",
      "mime": "image/jpeg",
      "path": "4",
      "width": 422,
      "height": 750,
      "size": 48.46,
      "sizeInBytes": 48456,
      "url": "https://SOME-BUCKET/images/4/medium_fritada_eaff4eeea9.jpg"
    },
    "thumbnail": {
      "name": "thumbnail_fritada.jpg",
      "hash": "thumbnail_fritada_eaff4eeea9",
      "ext": ".jpg",
      "mime": "image/jpeg",
      "path": "4",
      "width": 88,
      "height": 156,
      "size": 4.09,
      "sizeInBytes": 4093,
      "url": "https://SOME-BUCKET/images/4/thumbnail_fritada_eaff4eeea9.jpg"
    }
  },
  "hash": "fritada_eaff4eeea9",
  "ext": ".jpg",
  "mime": "image/jpeg",
  "size": 783.9,
  "url": "https://SOME-BUCKET/images/4/fritada_eaff4eeea9.jpg",
  "previewUrl": null,
  "provider": "aws-s3",
  "provider_metadata": null,
  "folderPath": "/1",
  "createdAt": "2024-11-29T00:28:27.833Z",
  "updatedAt": "2024-11-29T00:28:27.833Z"
}
```
The path attribute is present for the thumbnail ad the medium record - the root element does not contain a path to the folder in s3 - There is a `folderPath` attribute but it is not the same.

### Additional context

I've looked at the s3 upload plugin and it's method `getFileKey` expects the file to contain the path attribute to specify the folder.
```ts
    const getFileKey = (file: File) => {
      const path = file.path ? `${file.path}/` : '';
      return `${filePrefix}${path}${file.hash}${file.ext}`;
    };
```
https://github.com/strapi/strapi/blob/develop/packages/providers/upload-aws-s3/src/index.ts