feat: Working version with google drive storage.

This commit is contained in:
charlesgauthereau
2026-01-24 12:13:55 +01:00
parent 4eeeef3427
commit a64a80910d
18 changed files with 397 additions and 562 deletions
+7 -1
View File
@@ -45,11 +45,17 @@ export const uploadUserImageAction = userAction.schema(
action: "upload",
data: {
path: path,
file: buffer
file: buffer,
url: true
},
metadata: {
storageId: settings.storageChannel.id,
fileKind: "images"
}
}
const result = await dispatchStorage(input, undefined, settings.storageChannel.id);
console.log(result);
if (!result.success) {
return {
success: false,