Sha256: f2b5489ca05dc7a60c2193adc50ddb1106704f705d01b052e41d3dd6ea722806

Contents?: true

Size: 302 Bytes

Versions: 3

Compression:

Stored size: 302 Bytes

Contents

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

3 entries across 3 versions & 1 rubygems

Version Path
rails-uploader-0.4.4 lib/uploader/chunked_uploads.rb
rails-uploader-0.4.3 lib/uploader/chunked_uploads.rb
rails-uploader-0.4.2 lib/uploader/chunked_uploads.rb