- 授权协议: MIT
- 开发语言: Ruby
- 操作系统: 跨平台
- 软件首页: http://shrinerb.com/
- 软件文档: http://shrinerb.com/
软件介绍
Shrine 是提供给 Ruby 应用的文件上传工具包:简单,灵活,高性能,安全,支持直接上传。
基础示例:
require "shrine"
require "shrine/storage/file_system"
Shrine.storages[:file_system] = Shrine::Storage::FileSystem.new("uploads")
uploader = Shrine.new(:file_system)
uploaded_file = uploader.upload(File.open("avatar.jpg"))
uploaded_file #=> #<Shrine::UploadedFile>
uploaded_file.url #=> "/uploads/9260ea09d8effd.jpg"
uploaded_file.data #=>
# {
# "storage" => "file_system",
# "id" => "9260ea09d8effd.jpg",
# "metadata" => {...},
# }
BSD Hacks
Dru Lavigne / O'Reilly Media, Inc. / 2004-05-24 / USD 24.95
If you want more than your average BSD user--you want to explore and experiment, unearth shortcuts, create useful tools, and come up with fun things to try on your own--BSD Hacks is a must-have. This ......一起来看看 《BSD Hacks》 这本书的介绍吧!
