Last active
August 26, 2019 12:43
-
-
Save devsli/75ea21bbc8333c5bfe6a8ef8030861ab to your computer and use it in GitHub Desktop.
Test uploads with big file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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