Image upload

更新时间:
复制 MD 格式

This topic describes how to upload images.

The Image Service processes images from OSS. You must upload images to the corresponding OSS bucket. For more information, see Simple upload in the OSS Developer Guide.

For example, the domain name for the Image Service in the China (Hangzhou) region is img-cn-hangzhou.aliyuncs.com.

Prerequisites:

  • An OSS bucket, such as oss-sample, is created in the same region. The OSS domain name for the China (Hangzhou) region is oss-cn-hangzhou.aliyuncs.com.

  • An image is uploaded to the OSS bucket using the console or an SDK. For example, the logo.png file is uploaded to the oss-sample bucket.

Upload an image using the console

For the console, see Upload files.

Upload an image using an SDK

For an example that uses the Java SDK, see Upload files (Java SDK V1).

Notes

  • The OSS bucket and the Image Service must be in the same region.

  • The OSS bucket name must match the Image Service channel name.

  • You must use the OSS domain name for uploads.