Skip to content

Commit

Permalink
图片上传处理,包括缩略图的生成
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinywan committed Aug 15, 2016
1 parent ff93f7a commit 208df90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Backend/Home/View/File/image.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ <h4>文件上传管理</h4>
<if condition='$user["face180"]'>
__ROOT__/Uploads/{$user.face180}
<else/>
__PUBLIC__/Images/noface.gif
__PUBLIC__/Backend/images/default.jpg
</if>" width='180' height='180' id='face-img'/>
</div>
</div>
Expand Down Expand Up @@ -127,6 +127,7 @@ <h4>文件上传管理</h4>
if(data.status){
$('#face-img').attr('src',ROOT + '/Uploads/' + data.mini_pic);
$('input[name=face180]').val(data.mini_pic);

}else {
alert(msg.info);
return false;
Expand Down
Binary file added Public/Backend/images/default.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 208df90

Please sign in to comment.