Questions tagged [carrierwave]
A modern ruby gem for file uploads in Rails and other frameworks, similar to paperclip and attachment_fu
carrierwave
3,035
questions
0
votes
0
answers
35
views
CarrierWave is creating bucket.domain for my minio s3 cdn
I want to use my minio cdn to add assets from rails using carrierwave.
My CarrierWave config looks like:
CarrierWave.configure do |config|
config.fog_provider = 'fog/aws'
config....
0
votes
0
answers
24
views
Migratiom from paperclip to carrierwave - uploading attachment to amazon S3
my rails application attachments were on paperclip after migration to carrierwave i want to keep old attachments uploaded to amazon S3 so i tried attachments urls be in this format:
"https://...
1
vote
0
answers
87
views
Content Type not being set Carrierwave S3
I'm having an issue with setting content_type when I'm trying to save a file using remote_file_url (I think that's the culprit at least, that's the only thing that differs from uploading via frontend)....
0
votes
0
answers
30
views
How to remove selected attachment when multiple attachments are uploaded using carrierwave gem in rails 6
I am using rails 6 app and carrierwave gem for attachments. I have post model shown below.
class Post < ApplicationRecord
mount_uploaders :attachments, AttachmentUploader
validates :body, ...
0
votes
0
answers
48
views
How to attach NFS using active storage in rails 7
test:
service: Disk
root: <%= Rails.root.join("tmp/storage") %>
local:
service: Disk
root: <%= Rails.root.join("storage") %>
# Use bin/rails credentials:edit ...
0
votes
0
answers
42
views
DropZone implementation with multiple file types + Carrierwave
I have searched a lot for a straightforward way or example to integrate Dropzone into my existing ActiveAdmin application that already uses carrier waves for single file upload
But I'm not able to ...
2
votes
0
answers
73
views
CarrierWave Multi-uploader Renames Existing Files
I have followed the CarrierWave documentation for multi-uploaders and you can upload multiple files as expected, however if the user uploads files a second time the original files get moved from file....
0
votes
0
answers
33
views
How to fill in columns tied to carrierWave without going through carrierWave
In developing a Ruby on Rails application, when I pass a file object to a column in a model with a CarrierWave set, it will correctly populate that column as well as save it to storage.
However, the ...
0
votes
0
answers
22
views
Not Displaying Image with Carrierwave using Rails 6
I was looking for a way to upload photos to the database and display images on a page. I am using Carrierwave. The image uploads correctly, but when it goes to display, it will not. When I tried to ...
0
votes
1
answer
171
views
My Ruby on Rails active record validation error does not persist when I re-render the same view
I'm using Rails 7 and Carrierwave to upload images.
My image uploading is working as expected, but my issue is happening when I try to implement validation error message for an incorrect file type. In ...
0
votes
4
answers
156
views
Is it possible to disable deletion of a cached file using the carrierwave uploader?
I have a CarrierWave uploader, I need to disable the deletion of cached files after saving them to the store. To then perform some kind of operation with this cached file and delete it manually.
My ...
0
votes
1
answer
56
views
At what point is validation triggered in the model when saving a file on S3 with Carrierwave and Fog?
There is an ActiveRecode model with a carrierwave uploader. I'm interested in the following question. At what point does validation occur? Before the moment the store method is triggered in the ...
1
vote
1
answer
73
views
How to authorize access to images uploaded to S3 by users?
Imagine the app with the ability to upload files by users. Only the author (the person who uploaded this file) and the author's friends should be able to see this uploaded file.
I am using "...
0
votes
0
answers
92
views
Wrong results performing THD calculation with FFT on square wave function in Python
I buitlt a function which should perform a FFT first on a generated function, later on real data. Then I want the THD (Total Harmonic Distortion) from the signal. To proof the System I want to check ...
-1
votes
1
answer
289
views
Carrierwave cache_stored_file! does not fetch the file in the cache
I am migrating from Carrierwave 1.3.X to 2.2.X and I am running into trouble here and there. One of the snippets that fail for me is this:
def files
signable_template.signable_documents.map do |sd|
...