mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
Upload profile picture and convert into webp
This commit is contained in:
parent
c28251b8b4
commit
e33566a04a
6 changed files with 94 additions and 10 deletions
|
|
@ -19,7 +19,7 @@ import {
|
|||
import { JwtAuthGuard } from '../../modules/immich-jwt/guards/jwt-auth.guard';
|
||||
import { AssetService } from './asset.service';
|
||||
import { FileFieldsInterceptor } from '@nestjs/platform-express';
|
||||
import { multerOption } from '../../config/multer-option.config';
|
||||
import { assetUploadOption } from '../../config/asset-upload.config';
|
||||
import { AuthUserDto, GetAuthUser } from '../../decorators/auth-user.decorator';
|
||||
import { CreateAssetDto } from './dto/create-asset.dto';
|
||||
import { ServeFileDto } from './dto/serve-file.dto';
|
||||
|
|
@ -48,7 +48,7 @@ export class AssetController {
|
|||
{ name: 'assetData', maxCount: 1 },
|
||||
{ name: 'thumbnailData', maxCount: 1 },
|
||||
],
|
||||
multerOption,
|
||||
assetUploadOption,
|
||||
),
|
||||
)
|
||||
async uploadFile(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue