title: Saving files in file system in Nestjs
body: <p>I want to store the <code>URL</code> of images sent from client using <code>multipart/form-data</code>in my <code>MySQL</code> database. I followed the docs but I can't really find out how I should save an image in server file system and return the URL back to the client.</p>
  
  <p>This is my code:</p>
  
  <pre><code>@ApiTags('product-image')
  @Controller('product-image')
  export class ProductImageController {
    constructor(public service: ProductImageService) {
    }
  
    @Post('upload')
    @UseInterceptors(FilesInterceptor('files'))
    uploadImage(@UploadedFiles() files) {
      console.log(files);
      // How can I save image files in
      // a custom path and return the path
      // back to the client?
  
    }
  }
  </code></pre>