    # File lib/fog/ecloud/requests/compute/virtual_machine_upload_file.rb, line 17
            def virtual_machine_upload_file(vm_uri, options)
              validate_upload_file_options(options)
              request(
                :expects => 204,
                :method => 'POST',
                :headers => {'Content-Type' => 'application/octet-stream', 'X-Guest-User' => options[:credentials][:user], 'X-Guest-Password' => options[:credentials][:password], 'Content-Range' => "0-#{options[:file].bytesize - 1}/#{options[:file].bytesize}"},
                :body => options[:file],
                :uri => vm_uri + "?path=#{options[:path]}",
                :parse => true
              )
            end