Flowdock
method

upload

Importance_0
v6.1.3.1 - Show latest stable - 0 notes - Class: AzureStorageService
upload(key, io, checksum: nil, filename: nil, content_type: nil, disposition: nil, **) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activestorage/lib/active_storage/service/azure_storage_service.rb, line 22
    def upload(key, io, checksum: nil, filename: nil, content_type: nil, disposition: nil, **)
      instrument :upload, key: key, checksum: checksum do
        handle_errors do
          content_disposition = content_disposition_with(filename: filename, type: disposition) if disposition && filename

          client.create_block_blob(container, key, IO.try_convert(io) || io, content_md5: checksum, content_type: content_type, content_disposition: content_disposition)
        end
      end
    end
Register or log in to add new notes.