Describe the bug
When importing a JSON file (that was exported) to a new database the image url in the database is different than the one that was exported. It looks like it is maybe re-uploading the image to the S3 bucket, but the image is broken. Because it is broken the mime type comes up as text/html. I have copied the image down from our S3 and the size is 2.0 KiB (the actual size should be 171KiB ) and when I open the image it fails and says it's broken. Any advice/help would be great. Thank you.
This is the URL after import in the database - https://site.com/cms-assets/join_4_dc8c03430c.png
To Reproduce
Steps to reproduce the behavior:
Export existing page with images (from an aws s3 bucket)
On a fresh install, import the page with images again
Image previews are broken in the content-manager as the mime type is text/html and the URL is not the same as the export one. The images in the Media Library are also broken.
Expected behavior
The URL should be the same as the one exported as its an existing asset.
Additional context
We are on strapi 4.12.5
We are using AWS S3/Cloudfront with @strapi/provider-upload-aws-s3 @ 4.12.5
Describe the bug When importing a JSON file (that was exported) to a new database the image url in the database is different than the one that was exported. It looks like it is maybe re-uploading the image to the S3 bucket, but the image is broken. Because it is broken the mime type comes up as text/html. I have copied the image down from our S3 and the size is 2.0 KiB (the actual size should be 171KiB ) and when I open the image it fails and says it's broken. Any advice/help would be great. Thank you.
partial of JSON exported
This is the URL after import in the database - https://site.com/cms-assets/join_4_dc8c03430c.png
To Reproduce Steps to reproduce the behavior:
Expected behavior The URL should be the same as the one exported as its an existing asset.
Additional context We are on strapi 4.12.5 We are using AWS S3/Cloudfront with @strapi/provider-upload-aws-s3 @ 4.12.5
Thank you.