We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FormData
data
fetchSyncPost
fetchSyncPost 在实现中,对于一切 data 参数不加区分地设定为 json 类型,但是后端 API 中,有些请求(如 upload, putFile 等)的body的类型是 HTMLForm。所以在使用这个 API 发这些请求的时候会出现错误。
json
见:
siyuan/app/src/util/fetch.ts
Line 25 in 83fbf8c
和:
Line 87 in 83fbf8c
请修复 fetchSyncPost 的实现,让其对不同类型更加鲁棒。
No response
- Version: 3.0.4 - Operating System: win10 - Browser (if used): No
无
The text was updated successfully, but these errors were encountered:
🎨 fix #10715
148c5a2
Vanessa219
No branches or pull requests
Is there an existing issue for this?
Can the issue be reproduced with the default theme (daylight/midnight)?
Could the issue be due to extensions?
Describe the problem
fetchSyncPost
在实现中,对于一切data
参数不加区分地设定为json
类型,但是后端 API 中,有些请求(如 upload, putFile 等)的body的类型是 HTMLForm。所以在使用这个 API 发这些请求的时候会出现错误。见:
siyuan/app/src/util/fetch.ts
Line 25 in 83fbf8c
和:
siyuan/app/src/util/fetch.ts
Line 87 in 83fbf8c
Expected result
请修复
fetchSyncPost
的实现,让其对不同类型更加鲁棒。Screenshot or screen recording presentation
No response
Version environment
Log file
无
More information
No response
The text was updated successfully, but these errors were encountered: