
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@quicksend/nestjs-transmit
Advanced tools
Integrate Transmit into your NestJS applications.
$ npm install @quicksend/nestjs-transmit @quicksend/transmit
First start by registering the TransmitModule in your application:
import { Module } from "@nestjs/core";
import { TransmitModule } from "@quicksend/nestjs-transmit";
@Module({
imports: [
TransmitModule.register()
]
})
export class FilesModule {}
You can optionally configure Transmit by passing in TransmitOptions while registering the module:
import { Module } from "@nestjs/core";
import { TransmitModule } from "@quicksend/nestjs-transmit";
@Module({
imports: [
TransmitModule.register({
maxFiles: 5,
maxFileSize: 100 * 1024 * 1024,
})
]
})
export class FilesModule {}
TransmitModule can also be registered asynchronously like so:
import { ConfigModule, ConfigService } from "@nestjs/config";
import { Module } from "@nestjs/core";
import { TransmitModule } from "@quicksend/nestjs-transmit";
@Module({
imports: [
TransmitModule.registerAsync({
imports: [ConfigModule],
inject: [ConfigService],
useFactory: (config: ConfigService) => ({
maxFiles: config.get("MAX_FILES"),
maxFileSize: config.get('MAX_FILE_SIZE'),
})
})
]
})
export class FilesModule {}
Once TransmitModule is registered, you can now use TransmitInterceptor in your controller to handle file uploads.
You can use the Fields and Files decorator to retrieve the fields and files that were received.
import { Controller, Post, UseInterceptors } from "@nestjs/common";
import { Field, File, ParseAsyncResults } from "@quicksend/transmit";
import { Fields, Files, TransmitInterceptor } from "@quicksend/nestjs-transmit";
@Controller()
export class FilesController {
@Post("upload")
@UseInterceptors(TransmitInterceptor())
upload(@Fields() fields: Field[], @Files() files: File[]): ParseAsyncResults {
return {
fields,
files
};
}
}
You can also pass in TransmitOptions when using TransmitInterceptor. This will allow you to override certain options for a specific endpoint or endpoints.
import { Controller, Post, UseInterceptors } from "@nestjs/common";
import { Field, File, ParseAsyncResults } from "@quicksend/transmit";
import { Fields, Files, TransmitInterceptor } from "@quicksend/nestjs-transmit";
@Controller()
export class FilesController {
@Post("upload")
@UseInterceptors(
TransmitInterceptor({
maxFiles: 2,
maxFileSize: 25 * 1024 * 1024,
})
)
upload(@Fields() fields: Field[], @Files() files: File[]): ParseAsyncResults {
return {
fields,
files
};
}
}
Run tests using the following commands:
$ npm run test
$ npm run test:watch
FAQs
Integrate Transmit into NestJS applications
We found that @quicksend/nestjs-transmit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.