mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 08:19:07 +00:00
EditAssetDialog: Create cropped image in the same folder as the original
This commit is contained in:
parent
a19579634c
commit
eabf3ebc0e
@ -123,7 +123,7 @@ export const PreviewBox = ({
|
||||
const nextAsset = { ...asset, width, height };
|
||||
const file = await produceFile(nextAsset.name, nextAsset.mime, nextAsset.updatedAt);
|
||||
|
||||
await upload({ name: file.name, rawFile: file });
|
||||
await upload({ name: file.name, rawFile: file }, asset.folder?.id);
|
||||
|
||||
trackUsage('didCropFile', { duplicatedFile: true, location: trackedLocation });
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user