WeChat.Material.upload_image

You're seeing just the function upload_image, go back to WeChat.Material module for more information.
Link to this function

upload_image(client, file_path)

Specs

upload_image(WeChat.client(), file_path()) :: WeChat.response()

上传图文消息内的图片获取URL - 官方文档

本接口所上传的图片不占用公众号的素材库中图片数量的100000个的限制。图片仅支持jpg/png格式,大小必须在1MB以下。

Link to this function

upload_image(client, filename, file_data)

Specs

upload_image(WeChat.client(), filename(), file_data()) :: WeChat.response()

上传图文消息内的图片获取URL(binary) - 官方文档

本接口所上传的图片不占用公众号的素材库中图片数量的100000个的限制。图片仅支持jpg/png格式,大小必须在1MB以下。