mirror of
https://github.com/sasjs/server.git
synced 2026-01-07 22:50:05 +00:00
fix(upload): added query param as well for filepath
This commit is contained in:
@@ -129,10 +129,11 @@ export class DriveController {
|
||||
})
|
||||
@Post('/file')
|
||||
public async saveFile(
|
||||
@FormField() filePath: string,
|
||||
@UploadedFile() file: Express.Multer.File
|
||||
@UploadedFile() file: Express.Multer.File,
|
||||
@Query() _filePath?: string,
|
||||
@FormField() filePath?: string
|
||||
): Promise<UpdateFileResponse> {
|
||||
return saveFile(filePath, file)
|
||||
return saveFile((_filePath ?? filePath)!, file)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user