NestJS: Image Upload (profile image) | Blog Project V-14

Поделиться
HTML-код
  • Опубликовано: 7 янв 2025

Комментарии • 32

  • @Valgarite
    @Valgarite Год назад +1

    Thank you for the video! Works great :)

    • @TommiCodes
      @TommiCodes  2 месяца назад +1

      Thanks for the great feedback!

  • @taherr1341
    @taherr1341 3 года назад +1

    Great work. Good luck. You are the best.

    • @TommiCodes
      @TommiCodes  3 года назад

      Thanks! Great to hear :)

  • @Bathusaix
    @Bathusaix 3 года назад

    node_modules/@nestjs/platform-express/adapters/express-adapter.d.ts:2:23 - error TS2305: Module '"../../common/interfaces/external/cors-options.interface"' has no exported member 'CorsOptionsDelegate'.
    2 import { CorsOptions, CorsOptionsDelegate } from '@nestjs/common/interfaces/external/cors-options.interface';
    ~~~~~~~~~~~~~~~~~~~
    [18:19:12] Found 1 error. Watching for file changes.

  • @RoiTrigerman
    @RoiTrigerman Год назад +1

    Thanks! Great video :)

    • @TommiCodes
      @TommiCodes  2 месяца назад

      Thank you for the feedback :)

  • @sunstrike8943
    @sunstrike8943 3 года назад +3

    Is it possible to send POST req image file and data together?

  • @rumadas8885
    @rumadas8885 3 года назад +2

    Hi Thomas I am having error when uploading to database. Error is " Empty criteria(s) are not allowed for the update method. +4050ms"

    • @kornitout
      @kornitout 3 года назад

      Make sure the id arugment of the updateOne method in the UserService is being passed in properly. I had the same issue until I noticed the id property in the req.user was undefined because I signed my jwt payload to have the id be called 'sub'

  • @nbaua3454
    @nbaua3454 4 года назад +1

    The entire series is awesome.
    I though was wondering if you could create a series as Angular 8 or 9 on client plus NestJS,GraphQL,PostgreSql (or mysql) as server setup.

    • @TommiCodes
      @TommiCodes  4 года назад

      Hi, thanks for the great feedback!
      I am not quite sure what you mean, this series here is Angular on the frontend and NestJS/Postgres on the backend.
      I can sure make later something about graphql and when it is useful.
      Or what exactly do you need?
      You can always follow me on twitter, to stay up to date with the uploading schedule - would also post here in the news section, but this only works, if you have over 1k subscribers

    • @nbaua3454
      @nbaua3454 4 года назад +1

      @@TommiCodes yes I meant the Graphql part, sadly I am not using any social networking sites since 2012, it was difficult to loose them but now I'm much sober and can focus more on work 😁

    • @TommiCodes
      @TommiCodes  4 года назад +2

      ​@@nbaua3454 Yeah, I definetely feel this! :)
      I will add GraphQL to my list, but it will take several weeks/months to appear here, since the list gets longer and longer :D and i am just doing this in my freetime

    • @nbaua3454
      @nbaua3454 4 года назад

      @@TommiCodes appreciate that, I know we're all in same boat, this is work of passion, few weeks are fine with me as long as they help the community. I love working on nestjs and nrwl in perticular, my video skills are not as good as yours else would have made a course as well.

  • @angelodebruyne4631
    @angelodebruyne4631 4 года назад +1

    Great tutorial. Did you already made a video about AWS S3 upload?

    • @TommiCodes
      @TommiCodes  4 года назад +3

      No, atm not.
      But it's on the list :)

    • @aseertal7zen
      @aseertal7zen 4 года назад

      @@TommiCodes do you use specific library foe was w3 ? or can you give me any Idea about that?

    • @TommiCodes
      @TommiCodes  4 года назад

      @@aseertal7zen You mean aws s3?
      There should be the "aws-sdk" package from aws

  • @premdasv8
    @premdasv8 4 года назад

    Hi, i'm fairly new to NestJs, documenets and other tutorials I saw mostly use Promises, But u are using Observables. Can u please tell me why? and what benefits of this.?

    • @TommiCodes
      @TommiCodes  4 года назад +1

      Here you can see the difference between promises & observables -->
      "Generally, the Observable pattern is an extended Promise pattern, with a lot more tools and functionality. It is up to you to decide to limit the code with Promises or not. It was first a custom libary, then got included in ES2016."
      more --> stackoverflow.com/questions/50269671/when-to-use-promise-over-observable

  • @yassineabdelouafi
    @yassineabdelouafi Год назад

    how to use it with angular ?

  • @khlchs2231
    @khlchs2231 3 года назад +2

    are you german?
    your accent seems like it

  • @iamdeveloper2580
    @iamdeveloper2580 4 года назад

    Hey Thomas, is it possible to resize already uploaded image using sharp or whatever? can you record video for this? I'm trying all day long and no result :|

    • @TommiCodes
      @TommiCodes  4 года назад +1

      Should be possible.
      I can add it to my list, but will take some time till video will be published.

    • @TommiCodes
      @TommiCodes  4 года назад +1

      You could resize it also before upload, have a read here stackoverflow.com/questions/23945494/use-html5-to-resize-an-image-before-upload

  • @catalinflorescu7380
    @catalinflorescu7380 3 года назад

    Following this tutorial i encounter the following situation: Argument of type 'string' is not assignable to parameter of type 'Doc[]'. This is at the following line: return of(res.sendFile(join(process.cwd(), 'uploads/profileImages/' + imagename))). Is there anyone that encountered this and have any ideea how to solve it?

    • @TommiCodes
      @TommiCodes  3 года назад

      Can you share a github link, so we can investigate further?

  • @TheWalrus_45
    @TheWalrus_45 4 года назад +1

    Thankyou!

  • @jhumerapus6545
    @jhumerapus6545 2 года назад

    bruh help I'm overwhelmed

  • @chanuka87
    @chanuka87 3 года назад +1

    Thanks