diff options
author | Steve <nilslice@gmail.com> | 2017-02-08 11:36:04 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-08 11:36:04 -0800 |
commit | a23e4659b9c2f418ce5183e79049f1baca9785c1 (patch) | |
tree | 6ba898be6716104ddd3ff4d7521560209e9324bd | |
parent | a21c1485ec4ab973afc9a8e5dbf742d88ae32e84 (diff) | |
parent | f740d2bd9b83e36137743346347b6a4a9f35c3a6 (diff) |
Merge pull request #69 from ponzu-cms/ponzu-dev
use downcase version of file extension as switch value
-rw-r--r-- | management/editor/elements.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/management/editor/elements.go b/management/editor/elements.go index 91f9336..b179960 100644 --- a/management/editor/elements.go +++ b/management/editor/elements.go @@ -143,6 +143,7 @@ func File(fieldName string, p interface{}, attrs map[string]string) []byte { if (uploadSrc.length > 0) { var ext = uploadSrc.substring(uploadSrc.lastIndexOf('.')); + ext = ext.toLowerCase(); switch (ext) { case '.jpg': case '.jpeg': |