Search Results for "file-uploading-with-activestorage-Rails-5-2"
Lessons
Forum Threads
How to use Uppy with ActiveStorage Discussion
I built a stimulus controller for this but ran into some issues getting the uppy stylesheets to load. I spent a lot of time trying to figure it out. Putting details here so I don't lose them or pe...
Brian Carpenter
replied
38
General
Rails 6 ActionView::MissingTemplate Missing template errors/500
I am working on to upgrade existing project and upgrade version from ruby 2.3.1 to version to 3.0.1 (rails 6.1.4) with related gems.
After uploading image, when execute render json, generate error...
MohitChavda
posted
1
Rails
Using the Trix Editor plus File Upload Attachments Discussion
Hi there! Any idea why uploading works in development locally, but not on ngrok or in production?
I get this:
application-f91eb14d1a71eb1bded7bacba5a2c9f6e50d1ef47606669468a65584ed3f021d.js:18352 U...
Gabriel Ursache
replied
53
General
How do I get avatar.variant(resize: “200x200”) on Rails 5 to work using aws on production?
Yeah, that would probably work fine for now. I'm not sure when Rails 6.1 will come out but it might be a little while so you'll probably need a solution like this until then. This basically replica...
Chris Oliver
replied
•
Solved
4
General
File uploading with ActiveStorage in Rails 5.2 Discussion
Hi Chris, thanks for this video and the one on migrating from Paperclip. Can you address how we might setup ActiveStorage for multiple environments? I have one s3 bucket for production and one for ...
Michael Prince
replied
31
General
Active Storage - Bulk importing files stored locally
What if you don't specify the content_type? Will it hurt anything?
Willard
replied
4
Rails
How would one go about sorting ActiveStorage has_many_attached objects?
Add an Array/JSON Array type column to the model which declares the has_many_attached and store ids of ActiveStorage::Attachments in it. Then you can do :
```
# app/models/entry.rb
class Entry &...
Tomas Valent
replied
•
Solved
7
Rails
Blog Posts with File Uploads using ActiveStorage & Amazon S3 Discussion
Hi , found problem with Action Text. For example, we have a blog model with a content field (action text field). We have attached the image (at this point it has been uploaded to amazon s3) and are...
Vladholovchak
replied
22
General
Direct File Uploads to S3: Part 3 Discussion
I haven't done direct uploads with Shrine v3 yet, but that's on my todolist.
Chris Oliver
replied
52
General
Digital Ocean Spaces does not respect ACL Public-Read (Active Storage)
I guess Digital Ocean uses Minio (https://min.io) and this issue is caused by some S3 API incompatibility. Unfortunately I needed to use AWS S3 as I dont like the monkey patch way.
Alisson Patrick
replied
3
Rails
Struggling with Active Storage delete/purge on uploads
Great! Glad you got it working. 🙌
Chris Oliver
replied
7
Rails
Direct Uploads with ActiveStorage Discussion
Hey, do you know if you can upload to a folder structure within an s3 bucket? I'm planning on having users (who have UUID's) to have direct uploads behind the scenes to UUID/filename (virtual folde...
Aaron
replied
22
General
Heroku deployment failing
I am trying to deploy this app to heroku. i get this error with the precompiling asset pipeline. I tried removing jquery from my Gem file but the error persists. log:
...
remote: Installing...
Hassanelashram
posted
1
Rails
File Uploading with Carrierwave Discussion
hi, How do I show an image in the index without carrierwaveI followed your steps without carrierwave and I need to show the image in the indexThank you!!
fettx
replied
25
General
Should I use a gem like paperclip or carrierwave to handle PDF and docx uploads?
Dont forget the Shrie videos Chris made, i found them really handy. And i would go with this over CarrierWave now personally.
First one is here https://gorails.com/episodes/file-uploading-with-shrine
Alan Reid
replied
•
Solved
5
Rails
An issue with uploading to S3 with jquery file upload
Hey Adam,
I did find the solution,
Firstly I did not include any stuff for shrines presign plugin. So based off [this](http://shrinerb.com/rdoc/files/doc/direct_s3_md.html) it would be
`Shrine.p...
Taro Singh
replied
3
Rails
How to build REST APIs?
Chris, pls don't forget to add authentication to the API series. It would be great to see both devise/JWT implementation.
Sean M
replied
15
General
Backing up uploaded files (hundreds of gigs) to S3 using Backup gem without duplication on HD
TL
replied
2
Servers