Skip to content

Commit

Permalink
Merge pull request #69 from ponzu-cms/ponzu-dev
Browse files Browse the repository at this point in the history
use downcase version of file extension as switch value
  • Loading branch information
nilslice authored Feb 8, 2017
2 parents a21c148 + f740d2b commit a23e465
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions management/editor/elements.go
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit a23e465

Please sign in to comment.