Skip to content

Commit

Permalink
fix: build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
besscroft committed Apr 9, 2024
1 parent fde2a7e commit 345f2b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/api/file-upload/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export async function POST(request: Request) {
const alistToken = findConfig.find((item) => item.config_key === 'alist_token')?.config_value || '';
const alistUrl = findConfig.find((item) => item.config_key === 'alist_url')?.config_value || '';

// @ts-ignore
const filePath = encodeURIComponent(`${mountPath.toString() === '/' ? '' : mountPath}/${type}/${file?.name}`)
console.log(filePath)
const data = await fetch(`${alistUrl}/api/fs/put`, {
Expand Down

0 comments on commit 345f2b4

Please sign in to comment.