Skip to content

Commit

Permalink
update to v1.0.35-release
Browse files Browse the repository at this point in the history
  • Loading branch information
KOHGYLW committed Jul 6, 2020
1 parent eaf74ae commit dbb335c
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 14 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,10 @@ _注:kift为该功能的开发名称,其实际成果命名为kiftd。_

> 提示:当您更新版本后,请手动清除浏览器的缓存,之后刷新网盘主页以确保数据文件保持最新!否则可能导致新版页面功能无法使用。
### 常规更新v1.0.34
### 常规更新v1.0.35
_本次更新为维护性的更新,修复一些已经发现的问题并优化使用体验,推荐所有用户升级。_
+ 进一步完善了文件系统——修复了当上传的文件夹中含有特殊字符且上传路径中存在重名文件夹时,选择“保留两者”会中断上传操作的问题。
+ 修复了一个存在于“上传文件夹”功能的非法命名漏洞。
+ 其他一些细节优化。
+ 修复了当用户执行批量上传操作时,中途切换所在的文件夹可能会导致上传路径发生改变的问题。
+ 升级了内置的MySQL数据库驱动的版本。


> 需要查看更多版本历史信息?请访问: https://kohgylw.gitee.io/News.html
Expand Down
Binary file not shown.
Binary file modified kiftd说明文档.pdf
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion webContext/home.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!doctype html>
<!-- 青阳网络文件传输系统 kiftd v1.0.34-RELEASE -->
<!-- 青阳网络文件传输系统 kiftd v1.0.35-RELEASE -->
<!-- 欢迎访问主界面 -->
<!-- by 青阳龙野([email protected]) -->
<html>
Expand Down
15 changes: 9 additions & 6 deletions webContext/js/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ var constraintLevel;// 当前文件夹限制等级
var account;// 用户账户
var isUpLoading = false;// 是否正在执行上传操作
var isImporting = false;// 是否正在执行上传文件夹操作
var uploadTargetFolder;// 执行上传操作时的目标文件夹(单独保存以避免用户切换文件夹)
var isChangingPassword = false;// 是否正在执行修改密码操作
var importFolderName;// 上传文件夹时保存文件夹名称
var xhr;// 文件或文件夹上传请求对象
Expand Down Expand Up @@ -1489,13 +1490,14 @@ function checkUploadFile() {
}
}
var namelist = JSON.stringify(filenames);
uploadTargetFolder = locationpath;// 记录上传目标

$
.ajax({
type : "POST",
dataType : "text",
data : {
folderId : locationpath,
folderId : uploadTargetFolder,
namelist : namelist,
maxSize : maxSize,
maxFileIndex : maxFileIndex
Expand Down Expand Up @@ -1605,7 +1607,7 @@ function doupload(count) {
var fd = new FormData();// 用于封装文件数据的对象
fd.append("file", uploadfile);// 将文件对象添加到FormData对象中,字段名为uploadfile
fd.append("fname", fname);
fd.append("folderId", locationpath);
fd.append("folderId", uploadTargetFolder);
if (repeModelList != null && repeModelList[fname] != null) {
if (repeModelList[fname] == 'skip') {
$("#uls_" + count).text("[已完成]");
Expand Down Expand Up @@ -3126,6 +3128,7 @@ function checkImportFolder() {
maxFileIndex = i;
}
}
uploadTargetFolder = locationpath;// 记录上传目标
// 发送合法性检查请求
$
.ajax({
Expand All @@ -3135,7 +3138,7 @@ function checkImportFolder() {
data : {
folderName : importFolderName,
maxSize : maxSize,
folderId : locationpath
folderId : uploadTargetFolder
},
success : function(result) {
var resJson = eval("(" + result + ")");
Expand Down Expand Up @@ -3216,7 +3219,7 @@ function importAndCover() {
url : 'homeController/deleteFolderByName.ajax',
type : 'POST',
data : {
parentId : locationpath,
parentId : uploadTargetFolder,
folderName : importFolderName
},
dataType : 'text',
Expand All @@ -3242,7 +3245,7 @@ function importAndBoth() {
url : 'homeController/createNewFolderByName.ajax',
type : 'POST',
data : {
parentId : locationpath,
parentId : uploadTargetFolder,
folderName : importFolderName,
folderConstraint : fc
},
Expand Down Expand Up @@ -3283,7 +3286,7 @@ function iteratorImport(i, newFolderName) {
var fd = new FormData();// 用于封装文件数据的对象

fd.append("file", uploadfile);// 将文件对象添加到FormData对象中,字段名为uploadfile
fd.append("folderId", locationpath);
fd.append("folderId", uploadTargetFolder);
fd.append("folderConstraint", fc);
fd.append("originalFileName", fname);
if (!!newFolderName) {
Expand Down
6 changes: 3 additions & 3 deletions webContext/js/home.min.js

Large diffs are not rendered by default.

0 comments on commit dbb335c

Please sign in to comment.