Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.