Skip to content

Instantly share code, notes, and snippets.

@devsli
Last active August 26, 2019 12:43
Show Gist options
  • Save devsli/75ea21bbc8333c5bfe6a8ef8030861ab to your computer and use it in GitHub Desktop.
Save devsli/75ea21bbc8333c5bfe6a8ef8030861ab to your computer and use it in GitHub Desktop.
Test uploads with big file
# 1. Create big file
# ------------------
# If the number ends with a ``b'', ``k'', ``m'', ``g'', or ``w'',
# the number is multiplied by 512, 1024 (1K), 1048576 (1M), 1073741824 (1G)
# or the number of bytes in an integer, respectively.
# Two or more numbers may be separated by an ``x'' to indicate a product.
fallocate -l 512m my-big-file
# 2. Upload big file
# ------------------
curl -X PUT -v -i --data-binary @"my-big-file" "http://localhost/my/api/point/upload.do"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment