Sha256: 6214cd6186d65b116932be4d87d6f4ce0162cff9b4717cb0aba1b8d5a59b7b0d

Contents?: true

Size: 333 Bytes

Versions: 11

Compression:

Stored size: 333 Bytes

Contents

# frozen_string_literal: true

module Uploader
  module ChunkedUploads
    extend ActiveSupport::Concern

    protected

    def with_chunked_upload(file_or_part)
      uploader = UploadRequest.new(request.env, file_or_part)
      return unless uploader.completed?

      yield uploader.file
      uploader.cleanup
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rails-uploader-0.5.9 lib/uploader/chunked_uploads.rb
rails-uploader-0.5.8 lib/uploader/chunked_uploads.rb
rails-uploader-0.5.7 lib/uploader/chunked_uploads.rb
rails-uploader-0.5.6 lib/uploader/chunked_uploads.rb
rails-uploader-0.5.5 lib/uploader/chunked_uploads.rb
rails-uploader-0.5.4 lib/uploader/chunked_uploads.rb
rails-uploader-0.5.3 lib/uploader/chunked_uploads.rb
rails-uploader-0.5.2 lib/uploader/chunked_uploads.rb
rails-uploader-0.5.1 lib/uploader/chunked_uploads.rb
rails-uploader-0.5.0 lib/uploader/chunked_uploads.rb
rails-uploader-0.4.5 lib/uploader/chunked_uploads.rb