Skip to content

Commit

Permalink
Switch curl flag --data-binary to -T
Browse files Browse the repository at this point in the history
Fixes OOM when file is large
  • Loading branch information
jennydaman committed Mar 25, 2024
1 parent c9acc3a commit 3db889c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/upload2orthanc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ fi
url="http://localhost:8042/instances"

find -L "$1" -type f -name '*.dcm' \
| parallel --bar -j 4 "curl -sfX POST -u orthanc:orthanc http://localhost:8042/instances -H Expect: -H 'Content-Type: application/dicom' --data-binary @'{}' -o /dev/null"
| parallel --bar -j 4 "curl -sSfX POST -u orthanc:orthanc http://localhost:8042/instances -H Expect: -H 'Content-Type: application/dicom' -T {} -o /dev/null"

0 comments on commit 3db889c

Please sign in to comment.