Rails 5.2 ActiveStorage Introduction

Sdílet
Vložit
  • čas přidán 19. 05. 2024
  • ►Check out gorails.com for Pro episodes and more!
  • Věda a technologie

Komentáře • 27

  • @asmentko
    @asmentko Před 4 lety +2

    Thank you! I was banging my head for hours trying to get active storage to work and your video finally got me unstuck.

  • @Ignas_
    @Ignas_ Před 5 lety +3

    Excellent tutorial.

  • @UsefulProgrammer
    @UsefulProgrammer Před 5 lety

    Excellent tutorial. Thank you.

  • @primetimetran
    @primetimetran Před 6 lety

    Awesome stuff bud

  • @dailyrise1111
    @dailyrise1111 Před 3 lety +1

    Excellent! as usual!

  • @mktaha
    @mktaha Před 5 lety

    Thanks for the great video. Could you show how you can manipulate an image in active storage? For example, rotate the image that was already uploaded? Thanks.

  • @eonacademy5036
    @eonacademy5036 Před 2 lety

    Thank you! 😺

  • @byteboxing
    @byteboxing Před 5 lety

    Thank you so much! Your Videos are greate! How would i create a upload form for multiple files, which all create a single record? For example: I have a "Photo" model which stores some things arround one uploaded image. Like Description, Keywords, location and so on. But i would like to give the users the ability to upload a bunch of files all at once.

  • @dineshanthony697
    @dineshanthony697 Před 4 lety +1

    great!

  • @torvic99
    @torvic99 Před 6 lety +1

    more more more!

  • @austinklenk9571
    @austinklenk9571 Před 6 lety

    When can you do the video with direct uploads to digital ocean spaces with active storage. I'm encountering a NotImplementedError url for direct upload :(

  • @hakooplayplay3212
    @hakooplayplay3212 Před 6 lety

    Need more info about creating link to purge file, please!

  • @nikos83
    @nikos83 Před 5 lety

    Great video thanks! I just add AS to my app on local it was easy but don't really know how to do it on VPS. I'm using Capistrano to deploy on VPS. Maybe someone know how to do it please?

  • @bradchellingworth5973
    @bradchellingworth5973 Před 5 lety +6

    Can you do a video on how to do this file uploads from Vue using rails api? Im finding it really difficult and I think using rails as an api is probably a more popular usage these days.

  • @prasangathapaliya8294
    @prasangathapaliya8294 Před 3 lety

    How can we upload videos and count views if it has been watched fully?

  • @gmmcal
    @gmmcal Před 6 lety

    is there a way to handle resizing after upload is complete, like most upload gems do?if I got it right, the resize is done on the first render of the view, and that could cause the server to hang if you have many images to be resized.
    PS: I haven't checked documentation yet

    • @GorailsTV
      @GorailsTV  Před 6 lety

      You would simply just reference the processed variant server side to do that. Same thing as in the views, but that'll force processing after upload. avatar.variant(resize: "100x100").processed

    • @mikesitex
      @mikesitex Před 6 lety

      After upload, could you fetch the image from S3 (or wherever) and resize it with a background job?

  • @SS-li3ft
    @SS-li3ft Před 2 lety

    Hai can you do an episode for creating modal carousel with active storage has_ many_attachment

  • @TheddunTOSS
    @TheddunTOSS Před 4 lety

    Does this leak the original S3 link or ist that hidden behind Rails' router?

    • @GorailsTV
      @GorailsTV  Před 4 lety +1

      It's an expiring s3 link. The only way to truly hide the s3 link would be to download the file from s3 and re-serve it from rails which is really inefficient.

    • @TheddunTOSS
      @TheddunTOSS Před 4 lety

      @@GorailsTV Thanks! So it leaks a S3 link, but that expires after some minutes and is not identical to the original link, right?

    • @GorailsTV
      @GorailsTV  Před 4 lety +1

      @@TheddunTOSSIt's a direct link to the file in S3, but with a token that allows access for a short time. You can't access the file without a valid token.

    • @TheddunTOSS
      @TheddunTOSS Před 4 lety

      @@GorailsTV Thank you very much!

    • @MuhammadWaseem-mj3ge
      @MuhammadWaseem-mj3ge Před 2 lety

      How can I get permanent non expiring url? I have moved my app from paperclip to active storage and link expiring has become a serve issue for my app and headache for me! Is there any way that I don't have to take care about the link expiry or can I get a permanent url which I can uses anytime anywhere?

  • @romenigld
    @romenigld Před 6 lety

    the quality of the video is not good.