Skip to content

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.

revert image conflict; remiz does it by himself

Sara Vieirac360c5dc439f
diff --git a/apps/designer/app/routes/designer/$id.tsx b/apps/designer/app/routes/designer/$id.tsx
index 2471ad868d..cf51b24585 100644
--- a/apps/designer/app/routes/designer/$id.tsx
+++ b/apps/designer/app/routes/designer/$id.tsx
@@ -51,18 +51,17 @@ export const action: ActionFunction = async ({ request, params }) => {
unstable_createFileUploadHandler({
maxPartSize: 10_000_000,
directory,
- file: ({ filename }) => `${randomId}_${filename}`,
+ file: ({ filename }) => filename,
})
);
const imageInfo = ImageUpload.parse(formData.get("image"));
const info = imageInfo as ImageUpload;
- const fileName = `${randomId}_${info.name}`;
const data = {
type: info.type,
- name: fileName,
- path: `/uploads/${fileName}`,
+ name: info.name,
+ path: `/uploads/${info.name}`,
};
db.assets.create(params.id, data);