Server IP : 150.95.80.236 / Your IP : 3.145.20.21 Web Server : Apache System : Linux host-150-95-80-236 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : social-telecare ( 10000) PHP Version : 7.4.33 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/pcu.in.th/api-uat.pcu.in.th/node_modules/@nestjs/common/pipes/file/ |
Upload File : |
import { PipeTransform } from '../../interfaces/features/pipe-transform.interface'; import { FileValidator } from './file-validator.interface'; import { ParseFileOptions } from './parse-file-options.interface'; /** * Defines the built-in ParseFile Pipe. This pipe can be used to validate incoming files * with `@UploadedFile()` decorator. You can use either other specific built-in validators * or provide one of your own, simply implementing it through FileValidator interface * and adding it to ParseFilePipe's constructor. * * @see [Built-in Pipes](https://docs.nestjs.com/pipes#built-in-pipes) * * @publicApi */ export declare class ParseFilePipe implements PipeTransform<any> { protected exceptionFactory: (error: string) => any; private readonly validators; private readonly fileIsRequired; constructor(options?: ParseFileOptions); transform(value: any): Promise<any>; private validateFilesOrFile; private thereAreNoFilesIn; protected validate(file: any): Promise<any>; private validateOrThrow; /** * @returns list of validators used in this pipe. */ getValidators(): FileValidator<Record<string, any>, import("./interfaces").IFile>[]; }