-
-
Notifications
You must be signed in to change notification settings - Fork 413
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core): fix upload file guard (#5810)
fix: remove the plus sign in front of the phone number (#5801) Co-authored-by: Kamto <[email protected]>
- Loading branch information
Showing
2 changed files
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
"@logto/phrases": patch | ||
"@logto/core": patch | ||
--- | ||
|
||
Fix file upload API. | ||
|
||
The `koa-body` has been upgraded to the latest version, which caused the file upload API to break. This change fixes the issue. | ||
|
||
The `ctx.request.files.file` in the new version is an array, so the code has been updated to pick the first one. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters