Aliyun.Oss.Object.MultipartUpload.init_upload

You're seeing just the function init_upload, go back to Aliyun.Oss.Object.MultipartUpload module for more information.
Link to this function

init_upload(bucket, object, headers \\ %{}, opts \\ [])

Specs

init_upload(String.t(), String.t(), map(), [{:encoding_type, :url}]) ::
  {:error, error()} | {:ok, String.t()}

InitiateMultipartUpload 初始化一个 Multipart Upload 事件

Options

  • :encoding_type - default is blank, accept value: :url

Examples

iex> Aliyun.Oss.Object.MultipartUpload.init_upload("some-bucket", "some-object")
{:ok, "UPLOAD_ID"}