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
/api/file/globalCopyFiles
插件无法使用 putFile API 通过文件路径上传文件
在插件中需要上传一些资源文件,目前的方法是用fs.copyFile,但是D大表示这样的操作可能会导致数据分块损坏。在研究了一下putFile这个API之后,发现js无法直接根据文件路径形成form-data中的文件。
希望能够只提供文件的绝对路径(工作空间外),然后后端进行上传操作
No response
The text was updated successfully, but these errors were encountered:
🎨 Add internal kernel API /api/file/globalCopyFiles #10614
27c55b9
参数:
{ "srcs": ["C:\\Users\\User1\\Desktop\\444.log", "C:\\Users\\User1\\Desktop\\123.pdf", "C:\\Users\\User1\\Desktop\\siyuan\\"], "destDir": "/data/assets/" }
返回:
{ "code": 0, "msg": "", "data": null }
报错的话 code 不为 0。
Sorry, something went wrong.
88250
No branches or pull requests
插件无法使用 putFile API 通过文件路径上传文件
In what scenarios do you need this feature?
在插件中需要上传一些资源文件,目前的方法是用fs.copyFile,但是D大表示这样的操作可能会导致数据分块损坏。在研究了一下putFile这个API之后,发现js无法直接根据文件路径形成form-data中的文件。
Describe the optimal solution
希望能够只提供文件的绝对路径(工作空间外),然后后端进行上传操作
Describe the candidate solution
No response
Other information
No response
The text was updated successfully, but these errors were encountered: