[Spice-devel] [PATCH spice-html5 v3 0/7] Enable file transfer from client to guest

Pavel Grunt pgrunt at redhat.com
Wed Jan 14 08:44:35 PST 2015


Hi, the intetion of this series is to add the ability to transfer files from the client to the guest.

To make it work it was convenient to start using agent tokens (PATCH 1/7 & 2/7 & 3/7) because there can be a lot of agent messages when sending a file.
Methods for the transfer are based on relevant methods in spice-gtk.

v3: Fixes issues with IE11 by using readAsArrayBuffer instead of readAsBinaryString
    Files are transmitted in bigger chunk size (64 KB instead of 2 KB)
    Info message is logged when file is transferred
v2: Files are read only when tokens are available.

Pavel Grunt (7):
  Handle agent tokens
  Report SPICE_MAIN_CAP_AGENT_CONNECTED_TOKENS capability
  Send agent messages only when have agent tokens
  Split agent data message into smaller chunks
  Implement methods for transfering files from client to guest
  Use drag and drop for transfering files from client to guest
  Read file only when have agent tokens

 enums.js        |  11 ++++
 filexfer.js     |  47 +++++++++++++++
 main.js         | 173 +++++++++++++++++++++++++++++++++++++++++++++++++++++---
 spice.html      |  16 ++++++
 spice_auto.html |  16 ++++++
 spiceconn.js    |   4 ++
 spicemsg.js     | 122 +++++++++++++++++++++++++++++++++++++++
 7 files changed, 381 insertions(+), 8 deletions(-)
 create mode 100644 filexfer.js

-- 
1.9.3



More information about the Spice-devel mailing list