You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am trying import the data from one server to another, the collection data is importing properly but the images jpg and png images are getting uploaded as DOC in media library with no-preview. SVG images are uploaded properly with the preview the issue is only with png and jpg.
We are storing assets in AWS s3. I have exported the data using Json V2 option.
Can some help with this issue.
To Reproduce
Steps to reproduce the behavior:
Go to anyone collection and click import data type
Click on import
Data imported successfully.
Images are uploaded as DOC type in media library.
Expected behavior
Images must be uploaded as IMAGE type in media library so that we can see its preview.
Screenshots
Additional context
Using Strapi 4.24.5 V
The text was updated successfully, but these errors were encountered:
So in importFile I add mime as the parameter as it gets added from exportData and updated files object with type: mime instead of getting from response.headers.
Describe the bug
I am trying import the data from one server to another, the collection data is importing properly but the images jpg and png images are getting uploaded as DOC in media library with no-preview. SVG images are uploaded properly with the preview the issue is only with png and jpg.
We are storing assets in AWS s3. I have exported the data using Json V2 option.
Can some help with this issue.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Images must be uploaded as IMAGE type in media library so that we can see its preview.
Screenshots
Additional context
Using Strapi 4.24.5 V
The text was updated successfully, but these errors were encountered: