@gallop.software/studio 2.3.162 → 2.3.164

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,7 @@
11
11
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
12
12
  }
13
13
  </style>
14
- <script type="module" crossorigin src="/assets/index-2BVBgyle.js"></script>
14
+ <script type="module" crossorigin src="/assets/index-Uh7P5AGC.js"></script>
15
15
  <link rel="stylesheet" crossorigin href="/assets/index-DfPQBmNf.css">
16
16
  </head>
17
17
  <body>
@@ -2246,7 +2246,6 @@ async function handleUpload(request) {
2246
2246
  const fileName = slugifyFilename(file.name);
2247
2247
  const ext = path7.extname(fileName).toLowerCase();
2248
2248
  const isImage = isImageFile(fileName);
2249
- const isMedia = isMediaFile(fileName);
2250
2249
  const meta = await loadMeta();
2251
2250
  let relativeDir = "";
2252
2251
  if (targetPath === "public") {
@@ -2279,13 +2278,6 @@ async function handleUpload(request) {
2279
2278
  const uploadDir = getPublicPath(relativeDir);
2280
2279
  await fs7.mkdir(uploadDir, { recursive: true });
2281
2280
  await fs7.writeFile(path7.join(uploadDir, actualFileName), buffer);
2282
- if (!isMedia) {
2283
- return jsonResponse({
2284
- success: true,
2285
- message: "File uploaded (not a media file)",
2286
- path: `public/${relativeDir ? relativeDir + "/" : ""}${actualFileName}`
2287
- });
2288
- }
2289
2281
  if (isImage && ext !== ".svg") {
2290
2282
  try {
2291
2283
  const rotatedBuffer = await sharp2(buffer).rotate().toBuffer();