Avatar route changed to '/avatars'

This commit is contained in:
2017-12-29 14:36:32 +01:00
parent 06a90d7810
commit 176952d30f
4 changed files with 12 additions and 5 deletions

View File

@ -26,8 +26,8 @@ namespace Yavsc
FrontOfficeGroupName = "FrontOffice",
GCMNotificationUrl = "https://gcm-http.googleapis.com/gcm/send",
KeyProtectorPurpose = "OAuth.AspNet.AuthServer",
UserFilesPath = "/UserFiles",
AvatarsPath = "/Avatars",
UserFilesPath = "/files",
AvatarsPath = "/avatars",
DefaultAvatar = "/images/Users/icon_user.png",
AnonAvatar = "/images/Users/icon_anon_user.png";
public static char[] ValidChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-=_~. ".ToCharArray();

View File

@ -7,7 +7,7 @@
<ul>
@foreach (var user in Model.Users) {
<li> <img src="~/Avatars/@(user.UserName).xs.png" alt="avatar"/>
<li> <img src="~/avatars/@(user.UserName).xs.png" alt="avatar"/>
@user.UserName
</li>
}

View File

@ -8,7 +8,7 @@
<script>
$(document).ready(function() {
Dropzone.options.postavatar= {
maxFilesize: 2, // MB
maxFilesize: 2, // MB (an avatar)
autoProcessQueue: true,
accept: function(file, done) {
if (file.name == "justinbieber.jpg") {
@ -21,7 +21,7 @@ $(document).ready(function() {
});
</script>
}
<img src="~/Avatars/@(User.Identity.Name).png">
<img src="~/avatars/@(User.Identity.Name).png">
<form id="postavatar" class="dropzone" method="post" enctype="multipart/form-data">
<div class="fallback">