0007-00000301

Updated at:

Problem description

The upload callback fails to obtain image information.

Causes

Image information request parameters are specified in the callbackBody field in the upload callback, but requested image information cannot be obtained.

Examples

For example, you specify the imageInfo.height, imageInfo.width, or imageInfo.format parameter in the callbackBody field when you upload an image and the information about the image cannot be obtained after the upload is completed.

Solutions

  1. Check whether the image is uploaded. If the image fails to be uploaded, call the PutObject API operation to upload the image again.

  2. Check whether the image has been deleted based on a lifecycle rule or by another user.

  3. Check whether the image is in a format that supports image information queries in Object Storage Service (OSS). OSS supports image information queries for images only in one of the following formats: JPG, PNG, BMP, GIF, WebP, TIFF, and HEIC.

  4. Upload the image to OSS and use x-oss-process=image/info to test whether information about the image can be obtained.

  5. Use another image, such as https://image-demo.oss-cn-hangzhou.aliyuncs.com/f.jpg, to test whether information about the image can be obtained.

References

  • For more information about how to query information about images in OSS, see Query the EXIF data of an image.

  • For information about the causes of HTTP status code 203 and the corresponding solutions, see Errors returned with HTTP status code 203.

  • For information about the principles of the upload callback feature and how to use the feature, see Upload callbacks and Callback.

  • For more information about the common errors that you may encounter when you configure upload callbacks and the causes of these errors, see Upload callback.

  • For more information about how to obtain signature information from the server in various programming languages based on POST policies, configure upload callbacks, and then directly upload data to OSS by using form upload, see Overview.

  • For more information about how to set up an OSS-based direct data transfer service for mobile apps and configure upload callbacks, see Set up upload callback for mobile apps.