Skip to content

Commit

Permalink
fix(service): Upload file fails (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
gallayl authored Nov 29, 2023
1 parent 56a6b4b commit 2af0ddd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/src/drives/actions/upload-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { RequestAction } from '@furystack/rest-service'
import { RequestError } from '@furystack/rest'
import { JsonResult } from '@furystack/rest-service'
import type { Fields, Files } from 'formidable'
import formidable from 'formidable'
import { IncomingForm } from 'formidable'
import type { UploadEndpoint } from 'common'
import { Drive } from 'common'
import { getDataSetFor } from '@furystack/repository'
Expand Down Expand Up @@ -36,7 +36,7 @@ export const UploadAction: RequestAction<UploadEndpoint> = async ({ injector, ge
throw new RequestError(`Target path ${targetPath} does not exists`, 400)
}

const form = new formidable.IncomingForm({
const form = new IncomingForm({
uploadDir: targetPath,
keepExtensions: true,
multiples: true,
Expand Down

0 comments on commit 2af0ddd

Please sign in to comment.