implemented OneDrive and Google Drive Typescript SDKs with Provider Interface

This commit is contained in:
David Bauch
2025-07-07 14:23:08 -04:00
parent 53b0ee6610
commit f36c002d55
13 changed files with 989 additions and 434 deletions

View File

@@ -116,7 +116,7 @@ export function useUploadFile() {
const queryClient = useQueryClient();
return useMutation({
mutationFn: async ({ file, parentId, onProgress, returnedValues }: UploadFileParams) => {
mutationFn: async ({ file, parentId, onProgress }: UploadFileParams) => {
// ? Maybe look into Tanstack Form for this implementation
const formData = new FormData();
formData.append("file", file);
@@ -128,7 +128,6 @@ export function useUploadFile() {
withCredentials: true,
params: {
parentId,
returnedValues,
},
onUploadProgress: progressEvent => {
if (onProgress && progressEvent.total) {