call wall_attach rather than wall_upload for drag/drop; which means you can drag/drop any file and not just photos.

This commit is contained in:
redmatrix 2016-07-24 16:09:33 -07:00
parent 52c3960946
commit 9967f2ab28

View file

@ -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);