New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement streaming (non SOAP) upload service for use by the remoting module. #528

Closed
AdamNaj opened this Issue Nov 25, 2015 · 8 comments

Comments

Projects
None yet
2 participants
@AdamNaj
Member

AdamNaj commented Nov 25, 2015

Now!

@michaellwest

This comment has been minimized.

Member

michaellwest commented Nov 25, 2015

The following is an example of how to upload data before this issue is implemented.

$data = "I HAZ DATA"
$session = New-ScriptSession -Username "admin" -Password "b" -ConnectionUri "http://remotesitecore"
Invoke-RemoteScript -Session $session -ScriptBlock {
    [System.IO.File]::WriteAllText("$($SitecoreDataFolder)\data.xml", $using:data)
}

@michaellwest michaellwest self-assigned this Dec 12, 2015

@michaellwest

This comment has been minimized.

Member

michaellwest commented Dec 12, 2015

So far this example works:

Import-Module -Name SPE -Force

$instanceUrls = @("http://console")
$session = New-ScriptSession -Username "admin" -Password "b" -ConnectionUri $instanceUrls

Get-Item -Path C:\image.png | Send-RemoteItem -Session $session -RootPath Media -Destination "Images/"
@michaellwest

This comment has been minimized.

Member

michaellwest commented Dec 13, 2015

Implemented.

@michaellwest

This comment has been minimized.

Member

michaellwest commented Dec 20, 2015

@AdamNaj Just realized that the service setting is this:

<fileDownload enabled="false" />

Should there be one for download and another for upload? Does it make sense for it to be called fileDownload?

@AdamNaj

This comment has been minimized.

Member

AdamNaj commented Dec 22, 2015

I think splitting download from upload makes sense.

michaellwest added a commit that referenced this issue Dec 29, 2015

@AdamNaj

This comment has been minimized.

Member

AdamNaj commented Jan 12, 2016

Detection implemented, please verify that it's working for you as intended.

@michaellwest

This comment has been minimized.

Member

michaellwest commented Jan 12, 2016

That is setup as I intended.

@AdamNaj

This comment has been minimized.

Member

AdamNaj commented Jan 14, 2016

Finished now

@AdamNaj AdamNaj closed this Jan 14, 2016

@michaellwest michaellwest removed their assignment May 23, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment