diff --git a/en/application-dev/reference/apis/js-apis-zlib.md b/en/application-dev/reference/apis/js-apis-zlib.md index 05a99a8f76cf5195fed45d270945b9dc0aa8f25a..29a08b65aba9d945cfcdf2bbdf897a4527e40c38 100644 --- a/en/application-dev/reference/apis/js-apis-zlib.md +++ b/en/application-dev/reference/apis/js-apis-zlib.md @@ -248,6 +248,7 @@ For details about the error codes, see [zlib Error Codes](../errorcodes/errorcod | -------- | --------------------------------------| | 900001 | The input source file is invalid. | | 900002 | The input destination file is invalid. | +| 900003 | The input source file is not ZIP format or damaged. | **Example** @@ -298,6 +299,7 @@ For details about the error codes, see [zlib Error Codes](../errorcodes/errorcod | ------ | ------------------------------------- | | 900001 | The input source file is invalid. | | 900002 | The input destination file is invalid. | +| 900003 | The input source file is not ZIP format or damaged. | ```typescript // Decompress a file. diff --git a/en/application-dev/reference/errorcodes/errorcode-zlib.md b/en/application-dev/reference/errorcodes/errorcode-zlib.md index 0a5aa80a0fc249c9613412a5111e7ea7e266e4e7..a2197400315b4e60a905121f3a665d5ac127c7f3 100644 --- a/en/application-dev/reference/errorcodes/errorcode-zlib.md +++ b/en/application-dev/reference/errorcodes/errorcode-zlib.md @@ -42,3 +42,24 @@ This error code is reported when the destination file passed in the **compressFi 1. Check whether the destination file path is correct. If not, enter the correct sandbox path. 2. Check whether the destination folder exists. If not, create the folder. + +## 900003 Source File in Incorrect Format or Damaged + +**Error Message** + +The input source file is not ZIP format or damaged. + +**Description** + +This error code is reported when the format of the source file is incorrect or the source file is damaged when the **decompressFile** API is called. + + +**Possible Causes** + +1. When the **decompressFile** API is called, the format of the source file is incorrect. +2. When the **decompressFile** API is called, the source file is incomplete or damaged. + +**Solution** + +1. Check whether the source file format is ZIP. +2. Check whether the source file is complete. If the file is downloaded from the network, ensure that the file download is complete before calling the **decompressFile** API.