Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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?

share|improve this question
up vote 3 down vote accepted

The limitation is most likely in the web server's PHP configuration.

share|improve this answer
I changed the upload_max_filesize from 2M to 10M in php.ini and it worked. – shantanuo Feb 19 '13 at 8:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.