Sometimes (most of the time) when setting up a server or app I forget to set the file upload limit.
Here is a quick way to generate a file of any size and then upload it to a server via curl.
mkfile -n 24m 24.txt curl -F 'data=@24.txt' https://example.com/file-upload-handler
Note: I use a Mac