Skip to content

Commit

Permalink
refactor: Rename uploadFiles to uploadFile
Browse files Browse the repository at this point in the history
Files are sent one by one
  • Loading branch information
acezard committed Oct 23, 2023
1 parent 0f6bb76 commit 2ec43d6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/drive/web/modules/views/Upload/UploadUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,12 @@ export const sendFilesToHandle = async (

const fileOptions = {
name: file.file.name,
dirId: folder._id,
conflictStrategy: 'rename'
dirId: folder._id
}

logger('info', 'uploadFilesFromFlagship called')

await webviewIntent?.call('uploadFiles', JSON.stringify({ fileOptions }))
await webviewIntent?.call('uploadFile', JSON.stringify({ fileOptions }))

logger('info', 'uploadFilesFromFlagship success')
}
Expand Down

0 comments on commit 2ec43d6

Please sign in to comment.