You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// https://github.com/golang/go/blob/e50f0f372b07149e9cf16b8fec80d2d72efe2a87/src/mime/multipart/formdata.go#L93ifn>maxMemory {
// too big, write to disk and flush bufferfile, err:=os.CreateTemp("", "multipart-")
iferr!=nil {
returnnil, err
}
// https://github.com/golang/go/blob/e50f0f372b07149e9cf16b8fec80d2d72efe2a87/src/os/tempfile.go#L30funcCreateTemp(dir, patternstring) (*File, error) {
ifdir=="" {
dir=TempDir()
}
// https://github.com/golang/go/blob/e50f0f372b07149e9cf16b8fec80d2d72efe2a87/src/os/file.go#L380// TempDir returns the default directory to use for temporary files.//// On Unix systems, it returns $TMPDIR if non-empty, else /tmp.// On Windows, it uses GetTempPath, returning the first non-empty// value from %TMP%, %TEMP%, %USERPROFILE%, or the Windows directory.// On Plan 9, it returns /tmp.//// The directory is neither guaranteed to exist nor have accessible// permissions.funcTempDir() string {
returntempDir()
}
Alist Version / Alist 版本
所有
Describe the bug / 问题描述
无法自定义临时目录位置,OpenWrt 等使用 tmpfs 的嵌入式设备上传大文件时会导致 /tmp 空间爆满。
Reproduction / 复现链接
No response
日志 / Logs
No response
The text was updated successfully, but these errors were encountered: