When I add images to Strapi, the sequence of the images changes, they are organized differently
Example:
for (let i = 1; i < images.length; i++) {
formData.append(
`files.otherImages`,
images[i].data,
`${article.slug}-${i}.jpg`,
);
}
expected output:
[1] article-slug-example-1.jpg
[2] article-slug-example-2.jpg
[3] article-slug-example-3.jpg
real output:
[1] article-slug-example-3.jpg
[2] article-slug-example-1.jpg
[3] article-slug-example-2.jpg
It could be because of the size, but would there be a way to sort by sequence?
This topic has been created from a Discord post (1235931703625781259) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord