From 9967f2ab28d751517f63572c1f820dd3d9be5e62 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Sun, 24 Jul 2016 16:09:33 -0700 Subject: call wall_attach rather than wall_upload for drag/drop; which means you can drag/drop any file and not just photos. --- view/tpl/jot-header.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'view') diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl index 904b333d6..ee00e25e6 100755 --- a/view/tpl/jot-header.tpl +++ b/view/tpl/jot-header.tpl @@ -520,7 +520,7 @@ function enableOnUser(){ } }); // POST to the wall_upload endpoint - xhr.open('post', '{{$baseurl}}/wall_upload/{{$nickname}}', true); + xhr.open('post', '{{$baseurl}}/wall_attach/{{$nickname}}', true); var data = new FormData(); data.append('userfile', file); -- cgit v1.2.3