Skip to content

ProjectResound/shrine-ftp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages