{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/vsts-agent/issues/732","repository_url":"https://api.github.com/repos/Microsoft/vsts-agent","labels_url":"https://api.github.com/repos/Microsoft/vsts-agent/issues/732/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vsts-agent/issues/732/comments","events_url":"https://api.github.com/repos/Microsoft/vsts-agent/issues/732/events","html_url":"https://github.com/Microsoft/vsts-agent/issues/732","id":197247392,"number":732,"title":"##vso[task.uploadfile] does not work with VSTS+Local Agent","user":{"login":"AlexHimself","id":10466466,"avatar_url":"https://avatars.githubusercontent.com/u/10466466?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexHimself","html_url":"https://github.com/AlexHimself","followers_url":"https://api.github.com/users/AlexHimself/followers","following_url":"https://api.github.com/users/AlexHimself/following{/other_user}","gists_url":"https://api.github.com/users/AlexHimself/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexHimself/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexHimself/subscriptions","organizations_url":"https://api.github.com/users/AlexHimself/orgs","repos_url":"https://api.github.com/users/AlexHimself/repos","events_url":"https://api.github.com/users/AlexHimself/events{/privacy}","received_events_url":"https://api.github.com/users/AlexHimself/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-22T19:16:09Z","updated_at":"2016-12-22T19:16:09Z","closed_at":null,"body":"## **Agent version and platform**\r\nvsts-agent-win7-x64-2.109.1.zip\r\n<br>\r\nWindows Server 2012 R2\r\n<br>\r\n## **VSTS type and version**\r\nVisualStudio.com\r\n<br>\r\nIf VisualStudio.com, what is your account name? https://axtras.visualstudio.com\r\n<br>\r\n## **What's not working?** \r\nFile uploads don't appear to work with PowerShell. I'm using VSTS with a local build agent running in interactive mode as administrator.\r\n\r\nI have a very basic PowerShell script that runs this:\r\n\r\nWrite-Host \"Uploading C:\\TEMP\\TestUploadFile.txt\"\r\nWrite-Host \"##vso[task.uploadfile]C:\\TEMP\\TestUploadFile.txt\"\r\n\r\nI've used Charles (like Fiddler) and I see at some point the file contents are being passed but I can't find the uploaded file anywhere. This is just a very basic test to upload a local file. In my actual use case, the file will be a large non-txt file, so I can't just output the contents.\r\n\r\n\r\n<br>\r\n## **Agent and Worker's diag log**\r\n\r\n[Agent_20161222-190332-utc.txt](https://github.com/Microsoft/vsts-agent/files/669620/Agent_20161222-190332-utc.txt)\r\n[Worker_20161222-190339-utc.txt](https://github.com/Microsoft/vsts-agent/files/669619/Worker_20161222-190339-utc.txt)\r\n"}}
{"actor":{"display_login":"AlexHimself"}}