mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
d30231e983
Better fit for upload/download terminology.
36 lines
442 B
Ruby
36 lines
442 B
Ruby
class ActiveFile::Site
|
|
def initialize
|
|
end
|
|
|
|
def upload(key, data)
|
|
end
|
|
|
|
def download(key)
|
|
end
|
|
|
|
def delete(key)
|
|
end
|
|
|
|
def exists?(key)
|
|
end
|
|
|
|
def url(key)
|
|
end
|
|
|
|
def checksum(key)
|
|
end
|
|
|
|
|
|
def copy(from_key:, to_key:)
|
|
end
|
|
|
|
def move(from_key:, to_key:)
|
|
end
|
|
|
|
|
|
private
|
|
def normalize_key(key)
|
|
# disallow "." and ".." segments in the key
|
|
key.split(%r[/]).reject { |s| s == "." || s == ".." }
|
|
end
|
|
end
|