I am using the following curl syntax to copy a file to another server and it is working as expected.
curl -F file=@/home/abc.txt.gz http://1.2.3.4/upload.php
But if the file abc.txt.gz is more than 2 or 3 MB in size, it fails with error code returned as 1. Is file size limitation part of curl command or it is just the network issue?