Answer the question
In order to leave comments, you need to log in
How to send paperclip file to ftp?
I'm using the gem https://github.com/xing/paperclip-storage-ftp But I can't figure out what I'm doing wrong - why the url is wrong (each /images/original/missing.png entry has it). My settings
has_attached_file :image, {
:storage => :ftp,
:path => '/ftp/menu-images/:filename',
:url => "http://site.com/ftp/menu-images/:filename",
:ftp_servers => [
{
:host => 'ip',
:user => 'username',
:password => 'pass'
},
],
passive: true
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question