diff options
| author | Steve Manuel <nilslice@gmail.com> | 2017-02-08 11:08:16 -0800 |
|---|---|---|
| committer | Steve Manuel <nilslice@gmail.com> | 2017-02-08 11:08:16 -0800 |
| commit | b592abd4c6dd88a4fb55b78c642c7901e5838eb5 (patch) | |
| tree | 6ba898be6716104ddd3ff4d7521560209e9324bd | |
| parent | 7c2d4c7e609ff56541fd8787133d33d9f7951393 (diff) | |
downcase the file extension so it matches cases
| -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': |
