Questions tagged [refile]

Refile is a modern file upload library for Ruby applications.

Features:

  • Configurable backends, file system, S3, etc...
  • Convenient integration with ORMs
  • On the fly manipulation of images and other files
  • Streaming IO for fast and memory friendly uploads
  • Works across form redisplays, i.e. when validations fail, even on S3
  • Effortless direct uploads, even to S3

Homepage

64 questions
0
votes
1 answer

How to handle multiple file formats in Rails?

Let's say I got a project which has something like a media pool. Basically I wanna be able to upload whatever file you could upload (images, videos, pdf, etc.). I was thinking about going with refile since it supports on-the-fly-processing of images…
Andre Zimpel
  • 2,323
  • 4
  • 27
  • 42
0
votes
1 answer

RoR/Refile Gem - Images not loading in Microsoft Edge

We are using the refile gem to display the images in our platform, they do work well on different browsers except for Microsoft Edge. Is there a different format or limitation for Microsoft Edge that I should know about it? (I don't have Microsoft…
Guillermo
  • 387
  • 2
  • 3
  • 11
0
votes
0 answers

Using FineUploader.js as front-end library with Refile gem on server-side

I'm using refile gem to upload multiple files to my S3 bucket through cloudfront CDN and it is woking just fine with standard file attachment field. But now I want to enhance front view experience by implementing drag and drop file JS library on…
0
votes
1 answer

Rails: Refile gem (attachment_image_tag prints wrong URL)

I'm using refile gem for file uploading and I'm uploading files directly to my amazon s3 public bucket. The files are being uploaded just fine to following…
0
votes
1 answer

Refile gem ImageMagick error

Using Refile gem to upload messages in my app to s3. My server is Ubuntu 16 and I am using Capistano and Nginx for deployment and server. Not sure why this error is coming up in production, but I am having trouble retrieving images in production…
Alex
  • 193
  • 1
  • 2
  • 12
0
votes
1 answer

Refile gives Sinatra::NotFound: Sinatra::NotFound in rails?

I added refile for file uploading in my rails 4.2 app. But now I starting to see Sinatra::NotFound when a user mistypes an url. What can I do to prevent it so it displays the correct error page?
user3384741
  • 1,261
  • 3
  • 16
  • 21
0
votes
2 answers

Rails: Refile for documents to download

Using the refile gem, I have uploaded documents (.pdf, .docx, .pptx, etc.). Uploading is fine. When I use attachemnt_url, it produces something like /attachments/...234jksdf2.../document. When I click the link_to, it downloads the document without…
Kevin Brown
  • 12,602
  • 34
  • 95
  • 155
0
votes
1 answer

how to upload multiple images with refile

I am trying to upload multiple images but after selecting multiple images refile creating only one record. I have checked out gorails refile video from there they shown upload through adding image_id to table. …
0
votes
1 answer

rails S3 subfolders with refile

I have a rails 4 app. I'm trying to make a subfolder system on S3 for different refile uploaders. I tried the code below but it didn't work out. Nothing got uploaded to S3 nor got displayed in the app. What did I miss? The logs: 20:24:09 puma.1 |…
Sean Magyar
  • 2,360
  • 1
  • 25
  • 57
0
votes
1 answer

How to manage photos uploaded with refile gem hosted on AWS within Activeadmin. Rails

I have a rails application using refile to upload multiple images. I want to be able to manage these images for all the users in Activeadmin so if someone were to upload an offensive photo I can remove it from their profile through activeadmin. I…
0
votes
1 answer

Refile and feature tests

I have a page where the user uploads a file (we are using Refile). Now I have a test something like the following attach_file :file_upload, Rails.root + "spec/fixture/pdf.pdf" click_button "Upload" then I check that there should be a success…
cubeguerrero
  • 210
  • 3
  • 8
0
votes
1 answer

How to delete attachment using refile ActiveRecord::RecordNotFound

I'm trying to delete / destroy an attachment I have uploaded using the refile gem, and I'm currently getting the following error, ActiveRecord::RecordNotFound in ImagesController#destroy Couldn't find Image with 'id'= images_controller.rb def…
ipatch
  • 3,933
  • 8
  • 60
  • 99
0
votes
1 answer

Refile Gem Image Links Break When I Push a New Commit to Heroku

My application is using the following gems: gem "refile", require: "refile/rails" gem "refile-s3" gem "refile-mini_magick" What my application does is that it uploads image files to an AWS S3 instance, then gets retrieved using helper methods from…
Tony
  • 219
  • 4
  • 17
0
votes
1 answer

Rails 4 Refile and mailer

I am using refile gem to upload documents. Documents once uploaded are then sent to some recipients by email. 1) How can I add to mail as attachments the documents stored with refile ? below it is not working I have the following in…
Fabio
  • 1
  • 1
  • 3
0
votes
1 answer

How can I set S3 ACL parameters with Refile gem integration with rails?

I am using Refile gem to upload images on S3 with Rails 4. With my current settings, I am able to view the images through S3 URL only after updating the ACL manually. Is there any way to configure Refile gem to set the ACL params to public_read?
Simmi Badhan
  • 493
  • 1
  • 5
  • 16