Christian Lapinig
Christian Lapinig

Reputation: 43

Uploading Images in Rails

The images on my app are visible when it is used on my computer, but when I try to use it on another computer or my phone, the images are not shown. The images are uploaded through the app/input from the computers directory. I was wondering if there was a way to make the images either public (not sure what term to use) or how do I upload them via URL? I am using the Paperclip 4.2.1 gem.

Thanks!

Upvotes: 1

Views: 79

Answers (3)

brrystrw
brrystrw

Reputation: 471

A good alternative is use Dropbox to host this kind of static files
https://github.com/janko-m/paperclip-dropbox

UPDATE: Obsolete due changes in Dropbox API. The author recomends Shrine as a replacement.

Upvotes: 1

Deekor
Deekor

Reputation: 9499

I highly recommend using Amazon's S3 to host your files. You can get a free year.

Upvotes: 0

Anant Kolvankar
Anant Kolvankar

Reputation: 1050

Best and a free solution to have your application hosted on heroku and using file upload is use google drive. Use paperclip-googledrive gem it will help you to achieve this https://github.com/evinsou/paperclip-googledrive

Upvotes: 2

Related Questions