Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

shrine-ftp

Shrine storage that handles file uploads to an FTP server

Usage

Refer to the Shrine Quick start if you need to know how to set up storage in the first place.

require "shrine"
require "shrine/storage/file_system"
require "shrine-ftp"

storage = Shrine::Storage::Ftp.new(
    host: 'ftp.yourhost.com',
    user: 'ftp_user',
    passwd: 'ftp_password',
    dir: 'your/path/to/files',
    prefix: 'http://cdn.yourhost.com'
)

Shrine.storages = {
    cache: Shrine::Storage::FileSystem.new('public', prefix: 'uploads/cache'),
    store: storage
}

About

Shrine storage that handles file uploads via FTP

Resources

License

Releases

No releases published

Packages

No packages published

Languages