0.01
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Ruby gem to provide server side connector to elFinder using AWS S3 like a container
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10
~> 10.0

Runtime

~> 0.4
~> 1.8
 Project Readme

el_finder_s3

Ruby gem to provide server side connector to elFinder using AWS S3 like a container

Description

This is based on cdmicacc's Ruby library to provide server side ftp functionality over elFinder ruby gem of Phallstrom.

Rails 4

  include ElFinderS3::Action
  
  def elfinder
    ElFinderS3::Connector.new(
      :mime_handler => ElFinderS3::MimeType,
      :root => '/',
      :url => 'CDN_BASE_PATH'
      :thumbs => true,
      :thumbs_size => 100,
      :thumbs_directory => 'thumbs',
      :home => t('admin.media.home'),
      :original_filename_method => lambda { |file| "#{File.basename(file.original_filename, File.extname(file.original_filename)).parameterize}#{File.extname(file.original_filename)}" },
      :default_perms => {:read => true, :write => true, :rm => true, :hidden => false},
      :server => {
        :bucket_name => 'BUCKET_NAME',
        :region => 'AWS_REGION',
        :access_key_id => 'ACCESS_KEY_ID',
        :secret_access_key => 'SECRET_ACCESS_KEY',
        :cdn_base_path => 'CDN_BASE_PATH'
      }
    ).run(params)
  end