radames commited on
Commit
5e32e12
·
1 Parent(s): a731165

add room name to file

Browse files
Files changed (1) hide show
  1. frontend/src/lib/utils.ts +1 -1
frontend/src/lib/utils.ts CHANGED
@@ -34,7 +34,7 @@ export async function uploadImage(imagBlob: Blob, params: {
34
  // simple regex slugify string for file name
35
  const promptSlug = slugify(params.prompt);
36
  const key = `${params.position.x}_${params.position.y}`;
37
- const fileName = `sd-${params.id}-${promptSlug}-${key}.jpeg`;
38
 
39
  const file = new File([imagBlob], fileName, { type: 'image/jpeg' });
40
 
 
34
  // simple regex slugify string for file name
35
  const promptSlug = slugify(params.prompt);
36
  const key = `${params.position.x}_${params.position.y}`;
37
+ const fileName = `sd-${params.room}-${params.id}-${promptSlug}-${key}.jpeg`;
38
 
39
  const file = new File([imagBlob], fileName, { type: 'image/jpeg' });
40