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:
parent
52c3960946
commit
9967f2ab28
@ -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);
|
||||
|
Reference in New Issue
Block a user