mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 23:55:19 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue