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.

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)

0 answers

Sign up to answer this question »