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
4 жыл бұрын
Got a job yet?
@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.
@improv427 жыл бұрын
Really great tutorial! Thank you!
@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.
@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!
@dennisschreiner27512 жыл бұрын
Love your Videos ❤️ keep up the good work!
@GorailsTV
2 жыл бұрын
Thanks Dennis!
@JuanManuelRomeroMartin4 жыл бұрын
Very good video! Thanks a lot. One questions, how can I add a progress bar to handle the uploading of the Carrierwave?
@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
4 жыл бұрын
@@GorailsTV thanks a lot! I am gonna go to look for your videos. ^__^
@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.
@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
8 жыл бұрын
+Mazharoddin Mohammed I think only ryan bates knows it properly..As he is not making any screencasts rails is now bit incomplete..
@mazharoddin
8 жыл бұрын
+ABHILASH V.R ..hi... I followed another tutorial to achieve S3 direct upload..
@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
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
8 жыл бұрын
+Mazharoddin Mohammed Thanks..
@surnamematt8 жыл бұрын
is the cover attribute a string?
@GorailsTV
8 жыл бұрын
+matt lao That's correct. You can find out more about that stuff on the Carrierwave docs if you need.
@asdafsdfasd2138 жыл бұрын
Would you mind posting the code please? I'm trying to see what the helper methods are doing
@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
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
Пікірлер: 24
Carrierwave stuff starts ~14:00.
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
4 жыл бұрын
Got a job yet?
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.
Really great tutorial! Thank you!
@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.
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!
Love your Videos ❤️ keep up the good work!
@GorailsTV
2 жыл бұрын
Thanks Dennis!
Very good video! Thanks a lot. One questions, how can I add a progress bar to handle the uploading of the Carrierwave?
@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
4 жыл бұрын
@@GorailsTV thanks a lot! I am gonna go to look for your videos. ^__^
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.
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
8 жыл бұрын
+Mazharoddin Mohammed I think only ryan bates knows it properly..As he is not making any screencasts rails is now bit incomplete..
@mazharoddin
8 жыл бұрын
+ABHILASH V.R ..hi... I followed another tutorial to achieve S3 direct upload..
@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
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
8 жыл бұрын
+Mazharoddin Mohammed Thanks..
is the cover attribute a string?
@GorailsTV
8 жыл бұрын
+matt lao That's correct. You can find out more about that stuff on the Carrierwave docs if you need.
Would you mind posting the code please? I'm trying to see what the helper methods are doing
@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
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