summaryrefslogtreecommitdiff
path: root/management/editor/elements.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-05-01 01:51:46 -0500
committerGitHub <noreply@github.com>2017-05-01 01:51:46 -0500
commit8319420935c223e432bc4c386bd7d26b03f01b47 (patch)
tree8ebe1e3f0780f66530b723ce9b48f69ae664d764 /management/editor/elements.go
parent7092fb8979869f3c09b364d454d8d8081bb7c0bc (diff)
parent8a1d091a0c6d55dbd6c713b2240bee8550541e7b (diff)
Merge pull request #137 from ponzu-cms/ponzu-dev
[core] adding file upload metadata type and API
Diffstat (limited to 'management/editor/elements.go')
-rw-r--r--management/editor/elements.go2
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,