{"id":15639960,"url":"https://github.com/luan/carrierwave-ftp","last_synced_at":"2025-04-05T04:12:11.990Z","repository":{"id":4323524,"uuid":"5458039","full_name":"luan/carrierwave-ftp","owner":"luan","description":"Allows file upload using FTP for CarrierWave uploaders.","archived":false,"fork":false,"pushed_at":"2023-02-19T18:22:21.000Z","size":75,"stargazers_count":84,"open_issues_count":11,"forks_count":63,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-29T03:08:01.221Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/luan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2012-08-17T22:06:21.000Z","updated_at":"2025-03-27T01:19:56.000Z","dependencies_parsed_at":"2023-07-05T21:32:21.822Z","dependency_job_id":null,"html_url":"https://github.com/luan/carrierwave-ftp","commit_stats":{"total_commits":77,"total_committers":20,"mean_commits":3.85,"dds":0.5064935064935066,"last_synced_commit":"5481c1335fd3285d2057c7056e8a4662daa68dd4"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luan%2Fcarrierwave-ftp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luan%2Fcarrierwave-ftp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luan%2Fcarrierwave-ftp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luan%2Fcarrierwave-ftp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luan","download_url":"https://codeload.github.com/luan/carrierwave-ftp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247284951,"owners_count":20913704,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T11:29:05.380Z","updated_at":"2025-04-05T04:12:11.967Z","avatar_url":"https://github.com/luan.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CarrierWave FTP storage\n\n[![Build Status](https://travis-ci.org/luan/carrierwave-ftp.svg?branch=master)](https://travis-ci.org/luan/carrierwave-ftp)\n[![Code Climate](https://codeclimate.com/github/luan/carrierwave-ftp/badges/gpa.svg)](https://codeclimate.com/github/luan/carrierwave-ftp)\n[![Dependency Status](https://gemnasium.com/luan/carrierwave-ftp.png)](https://gemnasium.com/luan/carrierwave-ftp)\n\nThis gem adds support for FTP upload to [CarrierWave](https://github.com/jnicklas/carrierwave/)\n\n## Installation\n\nInstall the latest release:\n\n    gem install carrierwave-ftp\n\nRequire it in your code:\n\n    require 'carrierwave/storage/ftp'\n\nOr, in Rails you can add it to your Gemfile:\n\n    gem 'carrierwave-ftp', :require =\u003e 'carrierwave/storage/ftp/all' # both FTP/SFTP\n    gem 'carrierwave-ftp', :require =\u003e 'carrierwave/storage/ftp' # FTP only\n    gem 'carrierwave-ftp', :require =\u003e 'carrierwave/storage/sftp' # SFTP only\n\n## Getting Started (FTP)\n\nFirst configure CarrierWave with your FTP credentials:\n\n```ruby\nCarrierWave.configure do |config|\n  config.ftp_host = \"ftp.example.com\"\n  config.ftp_port = 21\n  config.ftp_user = \"example\"\n  config.ftp_passwd = \"secret\"\n  config.ftp_folder = \"/public_html/uploads\"\n  config.ftp_url = \"http://example.com/uploads\"\n  config.ftp_passive = false # false by default\n  config.ftp_tls = false # false by default\nend\n```\n\nAnd then in your uploader, set the storage to `:ftp`:\n\n```ruby\nclass AvatarUploader \u003c CarrierWave::Uploader::Base\n  storage :ftp\nend\n```\n\n## Getting Started (SFTP)\n\nFirst configure CarrierWave with your SFTP credentials:\n\n```ruby\nCarrierWave.configure do |config|\n  config.sftp_host = \"example.com\"\n  config.sftp_user = \"example\"\n  config.sftp_folder = \"public_html/uploads\"\n  config.sftp_url = \"http://example.com/uploads\"\n  config.sftp_options = {\n    :password =\u003e \"secret\",\n    :port     =\u003e 22\n  }\nend\n```\n\nAnd then in your uploader, set the storage to `:sftp`:\n\n```ruby\nclass AvatarUploader \u003c CarrierWave::Uploader::Base\n  storage :sftp\nend\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluan%2Fcarrierwave-ftp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluan%2Fcarrierwave-ftp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluan%2Fcarrierwave-ftp/lists"}