File tree Expand file tree Collapse file tree 6 files changed +6
-6
lines changed
Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 33 createDirectoryIfNotExists ,
44 getFileName ,
55 validateAndGetUploadType ,
6- } from './fileUtils ' ;
7- import { validateFile , FILE_SIZE_LIMITS } from './fileValidator ' ;
6+ } from './file-utils ' ;
7+ import { validateFile , FILE_SIZE_LIMITS } from './file-validator ' ;
88
99export const createDynamicStorage = ( ) => {
1010 return {
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { promises as fs } from 'fs';
44import { existsSync } from 'fs' ;
55import { v4 as uuidv4 } from 'uuid' ;
66import { BadRequestException } from '@nestjs/common' ;
7- import { FileUploadType } from './fileValidator ' ;
7+ import { FileUploadType } from './file-validator ' ;
88
99const BASE_UPLOAD_PATH = '/var/web05-Denamu/objects' ;
1010
File renamed without changes.
Original file line number Diff line number Diff line change 88 ApiQuery ,
99 ApiUnauthorizedResponse ,
1010} from '@nestjs/swagger' ;
11- import { FileUploadType } from '../../common/disk/fileValidator ' ;
11+ import { FileUploadType } from '../../common/disk/file-validator ' ;
1212
1313export function ApiUploadProfileFile ( ) {
1414 return applyDecorators (
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import { FileService } from '../service/file.service';
1515
1616import { ApiTags } from '@nestjs/swagger' ;
1717import { JwtGuard } from '../../common/guard/jwt.guard' ;
18- import { createDynamicStorage } from '../../common/disk/diskStorage ' ;
18+ import { createDynamicStorage } from '../../common/disk/disk-storage ' ;
1919import { ApiResponse } from '../../common/response/common.response' ;
2020import { ApiUploadProfileFile } from '../api-docs/uploadProfileFile.api-docs' ;
2121import { ApiDeleteFile } from '../api-docs/deleteFile.api-docs' ;
Original file line number Diff line number Diff line change 11import { IsEnum , IsOptional } from 'class-validator' ;
22import { Transform } from 'class-transformer' ;
33import { ApiProperty } from '@nestjs/swagger' ;
4- import { FileUploadType } from '../../common/disk/fileValidator ' ;
4+ import { FileUploadType } from '../../common/disk/file-validator ' ;
55
66export class FileUploadQueryDto {
77 @ApiProperty ( {
You can’t perform that action at this time.
0 commit comments