fix: 远程ssh文件写入权限

This commit is contained in:
TsMask
2025-06-16 18:36:57 +08:00
parent 3e1f605bba
commit e8efc2865a
4 changed files with 15 additions and 15 deletions

View File

@@ -490,7 +490,7 @@ func (s *FileController) Upload2(c *gin.Context) {
newFileName := upFilePath[strings.LastIndex(upFilePath, "/")+1:]
c.JSON(200, result.OkData(map[string]string{
"url": "//" + c.Request.Host + upFilePath,
"fileName": upFilePath,
"filePath": upFilePath,
"newFileName": newFileName,
"originalFileName": formFile.Filename,
}))
@@ -575,7 +575,7 @@ func (s *FileController) ChunkMerge2(c *gin.Context) {
newFileName := mergeFilePath[strings.LastIndex(mergeFilePath, "/")+1:]
c.JSON(200, result.OkData(map[string]string{
"url": "//" + c.Request.Host + mergeFilePath,
"fileName": mergeFilePath,
"filePath": mergeFilePath,
"newFileName": newFileName,
"originalFileName": body.FileName,
}))