title: Retrieving images in nestJS
body: <pre><code>@Controller('UploadMedia')
  //@UseGuards(JwtAuthGuard) 
  export class creativeLibraryController {
      constructor(private readonly creativeLibraryService : creativeLibraryService){}
  //':id/campaignId/creativeId'
      @Post()
      @UseInterceptors(FileInterceptor('file', {
        storage: diskStorage({
          destination:'./file1',
          filename: editFileName
        }),
  
      }))
      //@Param('id') id:number,@Param(' creativeId') creativeId:number,@Param('campaignId') campaignId:number,
      async uploadFile( @UploadedFile() file,@Request() req: Observable&lt;object&gt;) {
        
        const response = {
         // originalname: file.originalname,
          filename: file.filename,
          //filepath:file.path,
          
        };
  
        return response;
      }
  </code></pre>
  <p>I use the above code to upload an image using nest JS</p>
  <pre><code>@Get('image/:filename')
  seeUploadedFile(@Param('filename') image, @Res() res) { 
    return res.sendFile(image, { root: './file1' });
  }
  </code></pre>
  <p>I can retrieve my file by the above code too.... Can anyone suggest modifications I have to do in order to upload a specific content? As an example a profile picture.</p>