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
https://ld246.com/article/1654062080736
原因是较大的文件需要使用系统临时目录,但是 go mobile 的系统临时目录没有权限写入。
import.go:101: import data failed: open /data/local/tmp/multipart-3362071982: permission denied
问题分析
ginServer.MaxMultipartMemory = 1024 * 1024 * 32 // 插入较大的资源文件时内存占用较大 https://github.com/siyuan-note/siyuan/issues/5023
之前是 4G,但是因为 #5023 改为了 32M,所以会用到系统临时目录。
解决方案
通过环境变量 TMPDIR 指定系统临时目录路径为 工作空间/temp
TMPDIR
工作空间/temp
参考 golang os 包代码
The text was updated successfully, but these errors were encountered:
🎨 移动端导入大于 32M 的 Data 包失败 #5067
6e24e48
88250
No branches or pull requests
https://ld246.com/article/1654062080736
原因是较大的文件需要使用系统临时目录,但是 go mobile 的系统临时目录没有权限写入。
问题分析
之前是 4G,但是因为 #5023 改为了 32M,所以会用到系统临时目录。
解决方案
通过环境变量
TMPDIR
指定系统临时目录路径为工作空间/temp
参考 golang os 包代码
The text was updated successfully, but these errors were encountered: