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:

enter image description here

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)?

Franck Dernoncourt
  • 24,246
  • 64
  • 231
  • 400

0 Answers0