We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0aec57b + 3c13214 commit d27baa8Copy full SHA for d27baa8
matrix.lua
@@ -1613,7 +1613,7 @@ function MatrixServer:Upload(room_id, filename)
1613
local url = w.config_get_plugin('homeserver_url') ..
1614
('_matrix/media/r0/upload?access_token=%s')
1615
:format( urllib.quote(SERVER.access_token) )
1616
- w.hook_process_hashtable('/usr/bin/curl', {
+ w.hook_process_hashtable('curl', {
1617
arg1 = '--data-binary', -- no encoding of data
1618
arg2 = '@'..filename, -- @means curl will load the filename
1619
arg3 = '-XPOST', -- HTTP POST method
0 commit comments