All Questions
Tagged with image-upload ruby-on-rails
19 questions
0
votes
1
answer
245
views
How do i pass a variable to carrierwave?
I have a question for create a combined photo.
I want to create a composite image file and I need to get a value from ImageUploader using gem carrierwave.
One image is like background image, and ...
0
votes
0
answers
712
views
Image are being uploaded to Cloudinary but not displaying in app (Rails)
I am working on a Rails project hosted on Heroku with image upload via Cloudinary. The upload works, I can see the images on my Cloudinary account. In the app, the images are broken. When I copy the ...
3
votes
1
answer
364
views
Database is getting locked when saving my record
I am getting the database is locked when trying to save my record. I am trying a simple blog in rails. Having an article model, that contains the attribute, title, image and content. I have not ...
0
votes
0
answers
590
views
Rails activestorage does not create migration files
I make an image-upload for a user profile using the activestorage gem built into rails, but it is not working, the intriguing part is that there are no errors, the migration just does not get created.
...
0
votes
1
answer
784
views
Paper clip file upload issue in windows 10
I got an issue when I tried to upload an image using the paperclip gem.
It is working fine on my ubuntu system but not on windows 10.
Rails version = 5.1.2 Ruby version = 2.2.6p396 paperclip = 5.2.1
...
0
votes
0
answers
202
views
file_field in rails for image upload
I am having form for the user profile. In which there is a image field( I am using paperclip for image upload). I'm having an issue , when the user upload an image and again trying to upload and ...
2
votes
3
answers
5k
views
Carrierwave get image by url
I need to get some images by the url.
The urls are like http://img.wallsbay.com/large/2014/05/2665.jpg but 2014 and 2665 are changings.
My controller has this params:
def image_params
params....
0
votes
0
answers
945
views
undefined method `flush_errors' for #<ImageUploader:0x007f98fc4ef808>
I used paperclip gem in my project. It is working fine on local and on staging but on production it is giving me following error:
"undefined method `flush_errors' for #ImageUploader:0x007f98fc4ef808>"...
0
votes
4
answers
3k
views
NoMethodError: undefined method `add_attachment' for #<AddImageCloumnToPost:0x58 ba1b8>
In this application I am trying to do image upload. When I run the migration I am getting error.
Controller:
class PostsController < ApplicationController
def index
end
def new
@post = ...
0
votes
1
answer
665
views
Attachinary : can I keep the original filename?
I use Attachinray with Cloudinary, for direct upload. Everything works very well, except the fact that when I try to save files in my controller, I do not have the original filenames.
Here is a ...
1
vote
1
answer
550
views
Carrierwave image uploading not working
I am trying to upload a logo image to Amazon s3 bucket using carrierwave through rails application. but my file upload is not reading file as HTTP file and adds NULL to the database. I am unable to ...
0
votes
1
answer
88
views
Preventing users of my web application from modifying image id while uploading to cloudinary
I am building a rails web application where users can upload images from the browser to cloudinary. I am thinking a bit ahead, and want to prevent users from playing with the parameters being passed, ...
1
vote
1
answer
69
views
Multiple image upload with RoR
I'm new to RoR so this is probably a 5 min task for most of you.
I want to upload multiple images using paperclip - initially I set up the app to upload a single image using paperclip. I've now ...
0
votes
1
answer
1k
views
User photos album in Ruby on Rails
I am building an app where user can upload pictures. For now only one picture at a time will do. I have searched around the Web and here at Stack Overflow, but don't really seem to find what I am ...
0
votes
2
answers
637
views
Rails paperclip, ImageMagick img upload error - 'no file chosen'
Ok, so this is the second time I encounter this problem - see the previous question Rails paperclip img upload error: "no file chosen" with rmagick installed.
Since I didn't come up with u ...