Skip to content
This repository has been archived by the owner on Jan 1, 2022. It is now read-only.

Commit

Permalink
fix handleUpload
Browse files Browse the repository at this point in the history
  • Loading branch information
kuhahku committed Mar 10, 2021
1 parent 21e1f4a commit da2d0e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/files/load.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export async function handleFile(request, pathname, downloadUrl, { proxied = fal
}

export async function handleUpload(request, pathname, filename) {
const url = `${config.apiEndpoint.graph}/v1.0/me/drive/root:${encodeURI(config.base) +
const url = `${config.apiEndpoint.graph}/me/drive/root:${encodeURI(config.base) +
(pathname.slice(-1) === '/' ? pathname : pathname + '/')}${filename}:/content`
return await fetch(url, {
method: 'PUT',
Expand Down

0 comments on commit da2d0e8

Please sign in to comment.