Upload Different File Types With Active Storage In Ruby On Rails 7

Sdílet
Vložit
  • čas přidán 2. 06. 2024
  • This video covers uploading images, videos, audio recordings, and other file types like documents to your Ruby on Rails 7 application using Active Storage.
    Join this channel to help support these videos:
    / @deanin
    Follow me on social media:
    linktr.ee/deanin
    Join this channel to get access to perks:
    / @deanin
    If you liked this video, please consider subscribing: t.co/RZ4EwP0F2a
    Timestamps
    0:00 Uploading Miscellaneous Filetypes
    4:08 The Attachments Partial
    4:54 Uploading Images In Rails 7
    6:54 Uploading Videos In Rails 7
    8:54 Uploading Audio In Rails 7
    10:21 Uploading Other File Types In Rails 7
    #Deanin #Software #Programming

Komentáře • 10

  • @Sheriffdeenalade
    @Sheriffdeenalade Před rokem +1

    Very good and straight forward tutorial.

  • @ppavelcars
    @ppavelcars Před 2 lety +1

    Cool! Thank you for tutorial!

  • @muhammadaamirkhan9185

    Nice, thank you. very helpful

  • @stpaquet
    @stpaquet Před 2 lety +1

    Since Rails 5.2 the dependent: :destroy is no longer required as this is the default behavior of the app. However, there is a purge_later that has been introduce and could turn out to be interesting to defer the deletion of the files attached to a record and lower the server load.

  • @edwingalviz3498
    @edwingalviz3498 Před 2 lety +1

    very good thank you

  • @tiagolelinskimarin4242

    Great content, this really helped me to work things out about using files in rails the right way. Now, I'm stuck now on seeding the images to an Amazon s3 bucket. Do you happen to have a video on that?

  • @user-dx6qt7tw1v
    @user-dx6qt7tw1v Před 11 měsíci

    What would I do if I wanted to upload two different file types (image, and audio) in the same post? I've tried a combination of things to no avail.

  • @MrHorse16
    @MrHorse16 Před rokem +1

    How would you get this to work with PDFs?

    • @abdulhaqqsomoye9873
      @abdulhaqqsomoye9873 Před rokem

      the last "else" statement works with all file types including pdfs...the link to tag opens up the pdf

  • @ledockol
    @ledockol Před 2 lety +1

    Great, thanks!
    Слава Україні!