uploader
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
|
||||
export class UploadFileResponseDto {
|
||||
@ApiProperty({ example: 'uploads/2026/07/uuid-photo.jpg' })
|
||||
key: string;
|
||||
|
||||
@ApiProperty({ example: 'https://c274938.parspack.net/uploads/2026/07/uuid-photo.jpg' })
|
||||
url: string;
|
||||
|
||||
@ApiProperty({ example: 'photo.jpg' })
|
||||
originalName: string;
|
||||
|
||||
@ApiProperty({ example: 'image/jpeg' })
|
||||
mimeType: string;
|
||||
|
||||
@ApiProperty({ example: 102400 })
|
||||
size: number;
|
||||
}
|
||||
|
||||
export class MultiUploadResponseDto {
|
||||
@ApiProperty({ type: [UploadFileResponseDto] })
|
||||
files: UploadFileResponseDto[];
|
||||
}
|
||||
Reference in New Issue
Block a user