diff options
author | Steve Manuel <nilslice@gmail.com> | 2017-04-29 14:39:35 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2017-04-29 14:39:35 -0700 |
commit | a48ed8dc7f7ddb3ddbc8ea54ad0b0d2feb7c87f0 (patch) | |
tree | a9b29cab1d50909b9aae7653d92651a0815f71f7 /management/editor | |
parent | 7ecfc3ac37f3a00522dd486f4b7e7e7c1850de47 (diff) |
fmt bytes to readable and update setupload logic to allow edits
Diffstat (limited to 'management/editor')
-rw-r--r-- | management/editor/elements.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/management/editor/elements.go b/management/editor/elements.go index b179960..2dfab40 100644 --- a/management/editor/elements.go +++ b/management/editor/elements.go @@ -276,7 +276,7 @@ func Richtext(fieldName string, p interface{}, attrs map[string]string) []byte { data.append("file", files[0]); $.ajax({ data: data, - type: 'POST', + type: 'PUT', url: '/admin/edit/upload', cache: false, contentType: false, |