We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47b7ccc commit d503e4eCopy full SHA for d503e4e
app/gooeyFileInput.tsx
@@ -262,10 +262,11 @@ async function loadPreview({
262
preview?: string;
263
}) {
264
if (uppy.getFile(fileId).meta.type?.startsWith("image/")) return;
265
-
266
- const response = await fetch(
267
- `https://metascraper.gooey.ai/fetchUrlMeta?url=${url}`
268
- );
+ const metaScrapperApi = "https://metascraper.gooey.ai/fetchUrlMeta";
+ const params = new URLSearchParams({ url });
+ const apiUrl = new URL(metaScrapperApi);
+ apiUrl.search = params.toString();
269
+ const response = await fetch(apiUrl);
270
const data = await response.json();
271
const { content_type: contentType, image, title } = data;
272
const contentLength = response.headers.get("content-length");
0 commit comments