I have solved my issue by modifing this file
/workspaces/webstudio/packages/asset-uploader/src/upload.ts
With:
const MAX_ASSETS_PER_PROJECT = 200;
const count = (uploadedCount.count ?? 0) + (uploadingCount.count ?? 0);
if (count >= MAX_ASSETS_PER_PROJECT) {
/**
* Here is right to write `Max ${MAX_ASSETS_PER_PROJECT}` but see the comment below,
* it's probable that the user can exceed the limit a little bit.
* So it can be a little bit strange that the limit is 5 but the user already has 7.
**/
throw new Error(
`The maximum number of assets per project is ${MAX_ASSETS_PER_PROJECT}.`
);
}
I don't know if it's the best practice but it works π