Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
Merge branch 'main' into 536-when-only-one-image-is-too-large-let-others-upload
Oleg Isonen4ed0a41a175c
diff --cc apps/designer/app/designer/shared/assets/use-assets.tsindex 663c6d8b71,000c4dfafc..97cd36fac9--- a/apps/designer/app/designer/shared/assets/use-assets.ts+++ b/apps/designer/app/designer/shared/assets/use-assets.ts@@@ -76,12 -44,13 +76,14 @@@ const toPreviewAssets =const maxSize = toBytes(MAX_UPLOAD_SIZE);-const toFormData = (type: AssetType, input: HTMLInputElement) => {+const toFormsData = (type: AssetType, input: HTMLInputElement) => {const files = Array.from(input?.files ?? []);- const formData = new FormData();+ const formsData: Array<FormData> = [];- if (files.length === 0) return formsData;+ if (files.length === 0) {- return formData;++ return formsData;+ }for (const file of files) {+ const formData = new FormData();if (file.size > maxSize) {toast.error(`Asset "${file.name}" cannot be bigger than ${MAX_UPLOAD_SIZE}MB`