I'm trying to upload a txt file to SkyDrive account by using the following code:
Please note that that Link string is the correct location where the file needs to be uploaded in SkyDrive.
"try.txt" is a file created in "File.DirInternal"
when running the above code I'm getting this error:
-----------------------------------------------------
{
"error": {
"code": "request_header_invalid",
"message": "The header 'Content-Type' is missing the required parameter: 'boundary'."
}
}
JobName = Job5, Success = false
Error: Bad Request
-----------------------------------------------------
Based o Microsoft instructions; this is how this task needs to be done:
POST https://apis.live.net/v5.0/me/skydri...n=ACCESS_TOKEN
Content-Type: multipart/form-data; boundary=A300x
--A300x
Content-Disposition: form-data; name="file"; filename="HelloWorld.txt"
Content-Type: application/octet-stream
Hello, World!
--A300x--
-----------------------------------------------------
it will be great if somebody can help:sign0085:. Thank you all
HTML:
Dim job5 As HttpJob
Dim Link As String = FolderID & "?access_token=" & AccessToken
job5.Initialize("Job5", Me)
job5.PostFile(Link, File.DirInternal, "try.txt")
Please note that that Link string is the correct location where the file needs to be uploaded in SkyDrive.
"try.txt" is a file created in "File.DirInternal"
when running the above code I'm getting this error:
-----------------------------------------------------
{
"error": {
"code": "request_header_invalid",
"message": "The header 'Content-Type' is missing the required parameter: 'boundary'."
}
}
JobName = Job5, Success = false
Error: Bad Request
-----------------------------------------------------
Based o Microsoft instructions; this is how this task needs to be done:
POST https://apis.live.net/v5.0/me/skydri...n=ACCESS_TOKEN
Content-Type: multipart/form-data; boundary=A300x
--A300x
Content-Disposition: form-data; name="file"; filename="HelloWorld.txt"
Content-Type: application/octet-stream
Hello, World!
--A300x--
-----------------------------------------------------
it will be great if somebody can help:sign0085:. Thank you all