Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
xiaowei
9 years ago
Commit
20d55827728f01e629315afffcc5be40ef42c27b
1 parent
81830418
屏蔽类型判断
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
yohobuy/www.yohobuy.com/application/models/Home/Returns.php
yohobuy/www.yohobuy.com/application/models/Home/Returns.php
View file @
20d5582
...
...
@@ -475,10 +475,10 @@ class ReturnsModel
$result
[
'code'
]
=
400
;
$result
[
'message'
]
=
'文件上传错误'
;
}
else
{
$type
=
array
(
'image/png'
,
'image/jpeg'
,
'image/bmp'
,
'image/gif'
);
if
(
!
in_array
(
$_FILES
[
'fileData'
][
'type'
],
$type
))
{
return
array
(
'code'
=>
'400'
,
'message'
=>
'图片格式错误'
);
}
// $type = array('image/png','image/jpeg','image/bmp','image/gif');
// if (!in_array($_FILES['fileData']['type'],$type)) {
// return array('code'=>'400','message'=>'图片格式错误');
// }
$result
=
Images
::
saveImage
(
$filename
);
}
...
...
Please
register
or
login
to post a comment