aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/components
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/components')
-rw-r--r--apps/web/components/dashboard/UploadDropzone.tsx8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/web/components/dashboard/UploadDropzone.tsx b/apps/web/components/dashboard/UploadDropzone.tsx
index 2bac005e..8d119467 100644
--- a/apps/web/components/dashboard/UploadDropzone.tsx
+++ b/apps/web/components/dashboard/UploadDropzone.tsx
@@ -34,7 +34,12 @@ export function useUploadAsset() {
onSuccess: async (resp) => {
const assetType =
resp.contentType === "application/pdf" ? "pdf" : "image";
- await createBookmark({ ...resp, type: BookmarkTypes.ASSET, assetType });
+ await createBookmark({
+ ...resp,
+ type: BookmarkTypes.ASSET,
+ assetType,
+ source: "web",
+ });
},
onError: (err, req) => {
toast({
@@ -54,6 +59,7 @@ export function useUploadAsset() {
type: BookmarkTypes.TEXT,
text: content,
title: file.name.replace(/\.md$/i, ""), // Remove .md extension from title
+ source: "web",
});
} catch {
toast({