Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to the Power Users community on Codidact!

Power Users is a Q&A site for questions about the usage of computer software and hardware. We are still a small site and would like to grow, so please consider joining our community. We are looking forward to your questions and answers; they are the building blocks of a repository of knowledge we are building together.

Comments on Why does this PowerShell command first request writing all bytes before uploading to JFrog Artifactory and how can I make it stream bytes immediately?

Post

Why does this PowerShell command first request writing all bytes before uploading to JFrog Artifactory and how can I make it stream bytes immediately?

+0
−0

I upload a 150 MB file via PowerShell to a JFrog Artifactory server as follows:

$FilePath = "dataset.tar.gz"
$URL = "https://artifactory.somesite.com/artifactory/project1/dataset.tar.gz"
$ARTIFACTORY_API_TOKEN = "redacted"

Invoke-RestMethod -Uri $URL -Method Put -Headers @{ "X-JFrog-Art-Api" = $ARTIFACTORY_API_TOKEN } -InFile $FilePath

To my surprise, it first requested writing all the bytes:

which takes a minute or two, before actually sending the bytes that the file contains to the server. Why, and how can I avoid that (I'd prefer if it start upload the bytes that the file contain immediately)?

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

1 comment thread

X-post https://superuser.com/questions/1886700/why-does-this-powershell-command-first-request-writing... (2 comments)
X-post https://superuser.com/questions/1886700/why-does-this-powershell-command-first-request-writing...
samcarter‭ wrote 10 days ago

X-post https://superuser.com/questions/1886700/why-does-this-powershell-command-first-request-writing-all-bytes-before-uploadin . If you cross-post the same question on multiple sites, please include links to all other versions of the question in every post, even in the original one. X-posting without explicit links has the risk of wasting both the time of users who might put time and effort into answering a post, which already has an answer elsewhere, as well as the time of users who might have the same problem but can't find the solutions you might have gotten on one of the other sites you x-posted your question.

got it, will do! Sorry i didn't know the policy. I got DVed on SE for adding xpost links.