class AWS::S3::MultipartUploadCollection
@see Tree
# => [“photos/2010”, “photos/2011”, …]
children.select(&:branch?).map(&:prefix)
bucket.multipart_uploads.with_prefix(“photos”).as_tree.
@example Browsing with a tree interface
# => [“photos/1.jpg”, “photos/2.jpg”, …]
map { |upload| upload.object.key }
bucket.multipart_uploads.with_prefix(“photos/”).
@example Finding uploads by prefix
Represents the uploads in progress for a bucket.
def each_member_in_page(page, &block)
def each_member_in_page(page, &block) super page.uploads.each do |u| object = S3Object.new(bucket, u.key) upload = MultipartUpload.new(object, u.upload_id) yield(upload) end end
def initialize(bucket, opts = {})
- Api: - private
def initialize(bucket, opts = {}) @bucket = bucket super end
def limit_param; :max_uploads; end
def limit_param; :max_uploads; end
def list_request(options)
def list_request(options) client.list_multipart_uploads(options) end
def pagination_markers; super + [:upload_id_marker]; end
def pagination_markers; super + [:upload_id_marker]; end