[winswitch] How to send file from server and from client (html5 client)
Eric Grammatico
e.grammatico at gmail.com
Mon Dec 5 12:00:35 GMT 2016
Hi There,
I made an additional test with XPRA_CLIENT (xpra attach). The file is well transfered from the server to the client with the following command:
$> xpra control :100 send-file /etc/bashrc 'application/text' 9fc059c462eca4f10b2e641f5b9cda38
Again, I have no idea what is the second parameter from send-file. I guess this is file type.
One drawback from this configuration, the user receives no notification about the file transfert. I believe the user should be asked for the send-file and notified once the file is downloaded from the server.
I'll create two tickets, one for the send-file notification to XPRA_CLIENT and one for the send-file not working with XPRA_HTML5.
Thanks and regards,
-
_/) Eric Grammatico.
1 décembre 2016 17:05 "Eric Grammatico" a écrit:
Hi There,
I am testing xpra-1.0-0.20161125r14490 and my setup is the following:
XPRA_SERVER
XPRA_PROXY
XPRA_HTML5
I try to send a file from the server to the client, I expect the client will open a new windows or propose to download as it does for printing.
Unfortunately I have no clue how to achieve that. From the man page I learnt I could have some help from xpra control. Thus I launched from server:
$> xpra control :100 help send-file
control command 'send-file': sends the file to the client(s)
Ok, so I launched:
$> xpra control :100 send-file /etc/bashrc
server returned error code 127
at least 3 arguments required
'send-file': sends the file to the client(s)
With a bit of investigation I found the first argument is the file path and the third argument is the client.uuid, but no clue about the second argument. So I tried the following (blitz is just to avoid wrong number of arguments error, don't know what it's supposed to do with):
$> xpra control :100 send-file /etc/bashrc blitz 9fc059c462eca4f10b2e641f5b9cda38
send file of '/etc/bashrc' to 9fc059c462eca4f10b2e641f5b9cda38 initiated
But nothing happend on client side.
The xpra_server says:
2016-12-01 16:00:09,627 New unix-domain connection received on /var/run/rdisp/.xpra/xappdisp_eric-100
2016-12-01 16:00:56,445 New unix-domain connection received on /var/run/rdisp/.xpra/xappdisp_eric-100
and the xpra_proxy says nothing.
Please, could you explain how to tranfert files from server to html5 client and vice versa ?
Thanks and best regards,
-
_/) Eric Grammatico.
More information about the shifter-users
mailing list