instance method upload

Ruby on Rails 5.2.8.1

Since v5.2.8.1 Last seen in v6.0.6 Private

Available in: v5.2.8.1 v6.0.6

Signature

upload(image)

No documentation comment.

Parameters

image req
Source
# File activestorage/app/models/active_storage/variant.rb, line 129
    def upload(image)
      File.open(image.path, "r") { |file| service.upload(key, file) }
    end

Defined in activestorage/app/models/active_storage/variant.rb line 129 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveStorage::Variant

Type at least 2 characters to search.

↑↓ navigate · open · esc close