Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
xiaozhan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冷斌
xiaozhan
Commits
8397b859
Commit
8397b859
authored
Feb 21, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
ed45cca5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
simplewind/Core/Library/Think/Upload.class.php
+2
-6
No files found.
simplewind/Core/Library/Think/Upload.class.php
View file @
8397b859
...
...
@@ -128,21 +128,15 @@ class Upload {
/* 检测上传根目录 */
if
(
!
$this
->
uploader
->
checkRootPath
(
$this
->
rootPath
)){
$this
->
error
=
$this
->
uploader
->
getError
();
var_dump
(
1
,
$this
->
error
);
die
;
return
false
;
}
/* 检查上传目录 */
if
(
!
$this
->
uploader
->
checkSavePath
(
$this
->
savePath
)){
$this
->
error
=
$this
->
uploader
->
getError
();
var_dump
(
2
,
$this
->
error
);
die
;
return
false
;
}
var_dump
(
3
);
die
;
/* 逐个检测并上传文件 */
$info
=
array
();
if
(
function_exists
(
'finfo_open'
)){
...
...
@@ -150,6 +144,8 @@ class Upload {
}
// 对上传文件数组信息处理
$files
=
$this
->
dealFiles
(
$files
);
var_dump
(
$files
);
die
;
foreach
(
$files
as
$key
=>
$file
)
{
$file
[
'name'
]
=
strip_tags
(
$file
[
'name'
]);
if
(
!
isset
(
$file
[
'key'
]))
$file
[
'key'
]
=
$key
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment