File Uploading in Rails with Carrierwave

Ғылым және технология

Пікірлер: 24

  • @digitaldoggo
    @digitaldoggo7 жыл бұрын

    Carrierwave stuff starts ~14:00.

  • @siros4207
    @siros42077 жыл бұрын

    i love your approach of explaining by showing how things work , then use gem. great content , if I get a job I ll be a gorails sub.

  • @fahimalwasi

    @fahimalwasi

    4 жыл бұрын

    Got a job yet?

  • @vengadorweb
    @vengadorweb5 жыл бұрын

    sweet, works perfectly, now i am in my way to make it work with multiple files in the same folder, sub, bell and thumbs up for you bro, you deserve it.

  • @improv42
    @improv427 жыл бұрын

    Really great tutorial! Thank you!

  • @Giamarino
    @Giamarino7 жыл бұрын

    @GoRails How would you handle the migration table attributes and model validations if you wanted to make sure that the record doesn't get created without a file being uploaded. In my case I want an admin to be able to upload calendars. I don't want, however, the record to be saved if there is no file. So would you give the cover attribute a null: false requirement in the migration table and validate presence: true on the model? Or would you handle that differently. Or does implementing carrierwave not allow for such restrictions? Thank you for any guidance you can offer.

  • @ruiwang8994
    @ruiwang89948 жыл бұрын

    Hi, after watching your video, I did it by myself, but i met some problem: it seems in my app, my controller did not pass the whole "upload file data" to the model, because in my model it errors out "undefined method `original_filename' ". So I want to ask is there some special data structure the model requires? I found my controller just pass a part of the data into the model instance. Thank you!

  • @dennisschreiner2751
    @dennisschreiner27512 жыл бұрын

    Love your Videos ❤️ keep up the good work!

  • @GorailsTV

    @GorailsTV

    2 жыл бұрын

    Thanks Dennis!

  • @JuanManuelRomeroMartin
    @JuanManuelRomeroMartin4 жыл бұрын

    Very good video! Thanks a lot. One questions, how can I add a progress bar to handle the uploading of the Carrierwave?

  • @GorailsTV

    @GorailsTV

    4 жыл бұрын

    It's helpful if you use a tool like Uppy or jQuery File Upload for getting progress bars and you can just tell them to upload to Carrierwave's endpoint basically. I made a couple episodes on those you should check out.

  • @JuanManuelRomeroMartin

    @JuanManuelRomeroMartin

    4 жыл бұрын

    @@GorailsTV thanks a lot! I am gonna go to look for your videos. ^__^

  • @2ovob4ehko
    @2ovob4ehko4 жыл бұрын

    rails 4.2, carrierwave 1.2.3. I have field 'upload' (varchar 255). And on save model return error that Upload value too long, more then 255. But original file name is short and latin chars.

  • @mazharoddin
    @mazharoddin8 жыл бұрын

    Hi, Thanks for the nice tutorial, it would be great if you can create a tutorial on S3 direct upload using carrierwave + Jquery multiple image uploads with progress bars.

  • @abhilashvr007

    @abhilashvr007

    8 жыл бұрын

    +Mazharoddin Mohammed I think only ryan bates knows it properly..As he is not making any screencasts rails is now bit incomplete..

  • @mazharoddin

    @mazharoddin

    8 жыл бұрын

    +ABHILASH V.R ..hi... I followed another tutorial to achieve S3 direct upload..

  • @abhilashvr007

    @abhilashvr007

    8 жыл бұрын

    +Mazharoddin Mohammed Is the file processing covered in that through an s3 instance or someother way? Could you post the link of the tutorial? ...Also there is a new fileuploader for ruby called shrine.. github.com/janko-m/shrine ... Looks promising..

  • @mazharoddin

    @mazharoddin

    8 жыл бұрын

    +ABHILASH V.R I followed this link, www.akitaonrails.com/2014/03/26/heroku-tips-s3-direct-upload-carrierwave-sidekiq#.Vf_odnWlyko ..this worked for me ..sure, I will take a look at shrine Gem aswell...thanks

  • @abhilashvr007

    @abhilashvr007

    8 жыл бұрын

    +Mazharoddin Mohammed Thanks..

  • @surnamematt
    @surnamematt8 жыл бұрын

    is the cover attribute a string?

  • @GorailsTV

    @GorailsTV

    8 жыл бұрын

    +matt lao That's correct. You can find out more about that stuff on the Carrierwave docs if you need.

  • @asdafsdfasd213
    @asdafsdfasd2138 жыл бұрын

    Would you mind posting the code please? I'm trying to see what the helper methods are doing

  • @GorailsTV

    @GorailsTV

    8 жыл бұрын

    +Ashley Pettit It's been so long I don't think I have the code for this on Github unfortunately. :( I'm sorry!

  • @RajaRamanTechWorld2014

    @RajaRamanTechWorld2014

    7 жыл бұрын

    @Ashley You can try using shrine gorails.com/episodes/file-uploading-with-shrine?autoplay=1 It is lot better than carrierwave For direct upload to s3 gorails.com/episodes/direct-file-uploads-to-s3-part-1?autoplay=1

Келесі