Skip to content

Commit ded0c8b

Browse files
authored
Merge branch 'dev' into allow-pinning-code-editor-popup
2 parents 91f82cf + 2c9cd17 commit ded0c8b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

client/packages/lowcoder/src/util/fileUtils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export async function saveDataAsFile({ data, filename, fileType, dataType }: Sav
4848

4949
if (dataType === "base64") {
5050
const blob = new Blob([Buffer.from(data, "base64")], {
51-
type: mime + ";charset=utf-16",
51+
type: mim + ";charset=utf-16",
5252
});
5353
return saveAs(blob, filename, { autoBom: true });
5454
}

docs/build-apps/write-javascript/built-in-javascript-functions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ utils.downloadFile(query1.data, "users-data.xlsx")
8181

8282
// Example: Download the results of query1 as a XLXS file named users-data.
8383
utils.downloadFile(restApiQuery.data, "users-data", {
84-
fileType: "pdf",
84+
fileType: "xlsx",
8585
dataType: "base64",
8686
})
8787
```

server/api-service/lowcoder-plugins/restApiPlugin/src/main/java/org/lowcoder/plugin/restapi/RestApiExecutor.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ private ResponseBodyData parseResponseDataInfo(byte[] body, MediaType contentTyp
426426
}
427427
if (isBinary(contentType)) {
428428
return ResponseBodyData.builder()
429-
.body(Base64.getEncoder().encode(body))
429+
.body(body)
430430
.dataType(ResponseDataType.BINARY)
431431
.build();
432432
}

0 commit comments

Comments
 (0)